mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Merge pull request #162 from dalathegreat/bugfix/kona64-negativetemps
Kia/Hyundai 64kWh: Fix negative temp handling
This commit is contained in:
commit
581ca5d705
1 changed files with 2 additions and 2 deletions
|
@ -187,9 +187,9 @@ void update_values_kiaHyundai_64_battery() { //This function maps all the value
|
||||||
|
|
||||||
stat_batt_power = convertToUnsignedInt16(powerWatt); //Power in watts, Negative = charging batt
|
stat_batt_power = convertToUnsignedInt16(powerWatt); //Power in watts, Negative = charging batt
|
||||||
|
|
||||||
temperature_min = convertToUnsignedInt16(temperatureMin * 10); //Increase decimals, 17C -> 17.0C
|
temperature_min = convertToUnsignedInt16((int8_t)temperatureMin * 10); //Increase decimals, 17C -> 17.0C
|
||||||
|
|
||||||
temperature_max = convertToUnsignedInt16(temperatureMax * 10); //Increase decimals, 18C -> 18.0C
|
temperature_max = convertToUnsignedInt16((int8_t)temperatureMax * 10); //Increase decimals, 18C -> 18.0C
|
||||||
|
|
||||||
cell_max_voltage = CellVoltMax_mV;
|
cell_max_voltage = CellVoltMax_mV;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue