From 0d776fa04db7760cc1370b3280e09b2336238116 Mon Sep 17 00:00:00 2001 From: tomdebree Date: Sun, 3 Nov 2024 14:35:25 +0000 Subject: [PATCH] Fix GS450h temps --- src/GS450H.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }