diff --git a/src/GS450H.cpp b/src/GS450H.cpp index a4a4924..3aa91fd 100644 --- a/src/GS450H.cpp +++ b/src/GS450H.cpp @@ -443,8 +443,8 @@ void GS450HClass::Task1Ms() dma_clear_interrupt_flags(DMA1, DMA_CHANNEL6, DMA_TCIF); statusInv=1; dc_bus_voltage=(((mth_data[82]|mth_data[83]<<8)-5)/2); - temp_inv_water=(mth_data[42]|mth_data[43]<<8); - temp_inv_inductor=(mth_data[86]|mth_data[87]<<8); + temp_inv_water=int8_t(mth_data[42]); + temp_inv_inductor=int8_t(mth_data[86]); mg1_speed=mth_data[6]|mth_data[7]<<8; mg2_speed=mth_data[31]|mth_data[32]<<8; }