Skip to content

Commit

Permalink
Merge pull request #160 from dalathegreat/bugfix/LEAF-temperature-dis…
Browse files Browse the repository at this point in the history
…play

Nissan LEAF: Fix temperature value so its human readable
  • Loading branch information
dalathegreat authored Feb 7, 2024
2 parents 7324ac8 + 4e1ecfa commit c9fc805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Software/src/battery/NISSAN-LEAF-BATTERY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c9fc805

Please sign in to comment.