Fix hyphen

This commit is contained in:
Carsten Schmiemann 2022-04-12 23:36:26 +02:00
parent d904badf77
commit 66548a1e80

View file

@ -252,6 +252,7 @@ void OvmsVehicleRenaultZoePh2::IncomingINV(uint16_t type, uint16_t pid, const ch
mt_mot_temp_stator2->SetValue(float((CAN_UINT(0) - 40) * 0.001953125), Celcius);
ESP_LOGD(TAG, "7010 INV mt_mot_temp_stator2: %f", float((CAN_UINT(0) - 40) * 0.001953125));
break;
}
}
}
/**
@ -277,7 +278,7 @@ void OvmsVehicleRenaultZoePh2::IncomingEVC(uint16_t type, uint16_t pid, const ch
}
case 0x21D0: {
StandardMetrics.ms_v_charge_12v_temp->SetValue((float) (CAN_UINT(0) - 40));
ESP_LOGD(TAG, "21D0 EVC ms_v_charge_12v_temp: %d", CAN_UINT(0) - 40));
ESP_LOGD(TAG, "21D0 EVC ms_v_charge_12v_temp: %d", CAN_UINT(0) - 40);
break;
}
case 0x20B4: {
@ -287,15 +288,15 @@ void OvmsVehicleRenaultZoePh2::IncomingEVC(uint16_t type, uint16_t pid, const ch
}
case 0x21CF: {
ESP_LOGD(TAG, "21CF EVC mt_inv_status: %d", CAN_UINT(0));
if CAN_UINT(0)) == 1 {
if (CAN_UINT(0) == 1) {
mt_inv_status->SetValue("Inverter off");
} else if CAN_UINT(0)) == 2 {
} else if (CAN_UINT(0) == 2) {
mt_inv_status->SetValue("Inverter on");
} else if CAN_UINT(0)) == 3 {
} else if (CAN_UINT(0) == 3) {
mt_inv_status->SetValue("Inverter decharging");
} else if CAN_UINT(0)) == 4 {
} else if (CAN_UINT(0) == 4) {
mt_inv_status->SetValue("Inverter alternator mode");
} else if CAN_UINT(0)) == 5 {
} else if (CAN_UINT(0) == 5) {
mt_inv_status->SetValue("Inverter ready to sleep");
} else {
mt_inv_status->SetValue("Inverter state unknown");