From 66548a1e80d09c4757c64b913a8c9187b6ee1b8f Mon Sep 17 00:00:00 2001 From: Carsten Schmiemann Date: Tue, 12 Apr 2022 23:36:26 +0200 Subject: [PATCH] Fix hyphen --- .../src/vehicle_renaultzoe_ph2.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/OVMS.V3/components/vehicle_renaultzoe_ph2/src/vehicle_renaultzoe_ph2.cpp b/OVMS.V3/components/vehicle_renaultzoe_ph2/src/vehicle_renaultzoe_ph2.cpp index 84fa18d..1da9d62 100644 --- a/OVMS.V3/components/vehicle_renaultzoe_ph2/src/vehicle_renaultzoe_ph2.cpp +++ b/OVMS.V3/components/vehicle_renaultzoe_ph2/src/vehicle_renaultzoe_ph2.cpp @@ -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");