Skip to content

Commit

Permalink
change misleading Reset failure debug msg
Browse files Browse the repository at this point in the history
  • Loading branch information
matth-x committed Nov 24, 2024
1 parent 2d5dee9 commit a5a8b93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MicroOcpp/Model/Reset/ResetService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a5a8b93

Please sign in to comment.