From c5aa9c4d93f198ad6cfc9bbfb1e9a96fcabc8103 Mon Sep 17 00:00:00 2001 From: Carsten Schmiemann Date: Sat, 16 Apr 2022 20:06:22 +0200 Subject: [PATCH] Log fix --- .../vehicle_renaultzoe_ph2/src/vehicle_renaultzoe_ph2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 eaecbc7..a4fb848 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 @@ -96,7 +96,7 @@ OvmsVehicleRenaultZoePh2::~OvmsVehicleRenaultZoePh2() { void OvmsVehicleRenaultZoePh2::IncomingFrameCan1(CAN_frame_t* p_frame) { uint8_t *data = p_frame->data.u8; ESP_LOGI(TAG, "PID:%x DATA: %02x %02x %02x %02x %02x %02x %02x %02x", p_frame->MsgID, data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7]); - ESP_LOGD(TAG, "Status CAN Bus: %s", (char*)mt_bus_awake->AsBool()); + ESP_LOGD(TAG, "Status CAN Bus: %s", mt_bus_awake ? "true" : "false"); // Poll reply gives 0x83 0xc0 that means zoe is sleeping and CAN gateway does not respond to anything if (mt_bus_awake && data[0] == 0x83 && data[1] == 0xc0) {