diff --git a/CarHyundaiIoniq.cpp b/CarHyundaiIoniq.cpp index 157075e..b7ab9af 100644 --- a/CarHyundaiIoniq.cpp +++ b/CarHyundaiIoniq.cpp @@ -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);