mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Merge pull request #160 from dalathegreat/bugfix/LEAF-temperature-display
Nissan LEAF: Fix temperature value so its human readable
This commit is contained in:
commit
c9fc805b91
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue