Ioniq - Fix chargingOn flag

Signed-off-by: Martin Kolací <martin.kolaci@lmc.eu>
This commit is contained in:
Martin Kolací
2020-12-25 21:47:46 +01:00
parent fc00d31505
commit 0c112a9d0f

View File

@@ -188,7 +188,7 @@ void CarHyundaiIoniq::parseRowMerged() {
//liveData->params.batMinC = liveData->hexToDecFromResponse(34, 36, 1, true);
tempByte = liveData->hexToDecFromResponse(104, 106, 1, false);
liveData->params.chargingOn = (bitRead(tempByte, 2) == 1);
liveData->params.chargingOn = (bitRead(tempByte, 2) == 0);
// This is more accurate than min/max from BMS. It's required to detect kona/eniro cold gates (min 15C is needed > 43kW charging, min 25C is needed > 58kW charging)
liveData->params.batInletC = liveData->hexToDecFromResponse(48, 50, 1, true);