From a5a8b93595bd99b9a543edbb1aad8ee32aaa5181 Mon Sep 17 00:00:00 2001 From: matth-x <63792403+matth-x@users.noreply.github.com> Date: Sun, 24 Nov 2024 20:13:08 +0100 Subject: [PATCH] change misleading Reset failure debug msg --- src/MicroOcpp/Model/Reset/ResetService.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MicroOcpp/Model/Reset/ResetService.cpp b/src/MicroOcpp/Model/Reset/ResetService.cpp index 8335ce42..ad5295d9 100644 --- a/src/MicroOcpp/Model/Reset/ResetService.cpp +++ b/src/MicroOcpp/Model/Reset/ResetService.cpp @@ -50,10 +50,11 @@ void ResetService::loop() { MO_DBG_ERR("No Reset function set! Abort"); outstandingResetRetries = 0; } - MO_DBG_ERR("Reset device failure. %s", outstandingResetRetries == 0 ? "Abort" : "Retry"); if (outstandingResetRetries <= 0) { + MO_DBG_ERR("Reset device failure. Abort"); + ChargePointStatus cpStatus = ChargePointStatus_UNDEFINED; if (context.getModel().getNumConnectors() > 0) { cpStatus = context.getModel().getConnector(0)->getStatus();