Merge pull request #160 from dalathegreat/bugfix/LEAF-temperature-display

Nissan LEAF: Fix temperature value so its human readable
This commit is contained in:
Daniel Öster 2024-02-07 12:53:35 +02:00 committed by GitHub
commit c9fc805b91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(", Voltage: ", (battery_voltage * 0.1), "V ");
print_with_units(", Max discharge power: ", max_target_discharge_power, "W "); 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 charge power: ", max_target_charge_power, "W ");
print_with_units(", Max temp: ", (temperature_max * 0.1), "°C "); print_with_units(", Max temp: ", ((int16_t)temperature_max * 0.1), "°C ");
print_with_units(", Min temp: ", (temperature_min * 0.1), "°C "); print_with_units(", Min temp: ", ((int16_t)temperature_min * 0.1), "°C ");
Serial.println(""); Serial.println("");
Serial.print("BMS Status: "); Serial.print("BMS Status: ");
if (bms_status == 3) { if (bms_status == 3) {