Ioniq - Fix chargingOn flag
Signed-off-by: Martin Kolací <martin.kolaci@lmc.eu>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user