From 4e1ecfaad2984088b2721723e3e6e59999132491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20=C3=96ster?= Date: Wed, 7 Feb 2024 12:23:35 +0200 Subject: [PATCH] Fix value so its human readable --- Software/src/battery/NISSAN-LEAF-BATTERY.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Software/src/battery/NISSAN-LEAF-BATTERY.cpp b/Software/src/battery/NISSAN-LEAF-BATTERY.cpp index 17a286790..89a65cc2b 100644 --- a/Software/src/battery/NISSAN-LEAF-BATTERY.cpp +++ b/Software/src/battery/NISSAN-LEAF-BATTERY.cpp @@ -394,8 +394,8 @@ void update_values_leaf_battery() { /* This function maps all the values fetched print_with_units(", Voltage: ", (battery_voltage * 0.1), "V "); print_with_units(", Max discharge power: ", max_target_discharge_power, "W "); print_with_units(", Max charge power: ", max_target_charge_power, "W "); - print_with_units(", Max temp: ", (temperature_max * 0.1), "°C "); - print_with_units(", Min temp: ", (temperature_min * 0.1), "°C "); + print_with_units(", Max temp: ", ((int16_t)temperature_max * 0.1), "°C "); + print_with_units(", Min temp: ", ((int16_t)temperature_min * 0.1), "°C "); Serial.println(""); Serial.print("BMS Status: "); if (bms_status == 3) {