Merge pull request #162 from dalathegreat/bugfix/kona64-negativetemps

Kia/Hyundai 64kWh: Fix negative temp handling
This commit is contained in:
Daniel Öster 2024-02-10 19:33:40 +02:00 committed by GitHub
commit 581ca5d705
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;