Skip to content

Commit

Permalink
energy-manager: Fix Bricklet error message format
Browse files Browse the repository at this point in the history
  • Loading branch information
photron committed Apr 16, 2024
1 parent c81dcd8 commit 6e5d34f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions software/src/modules/energy_manager/energy_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,14 +456,14 @@ void EnergyManager::check_bricklet_reachable(int rc, const char *context)
}
} else {
if (rc == TF_E_TIMEOUT) {
logger.printfln_plain("(%s) Bricklet access timed out.", context);
logger.printfln("%s: Bricklet access timed out.", context);
} else {
logger.printfln_plain("(%s) Bricklet access returned error %d.", context, rc);
logger.printfln("%s: Bricklet access returned error %d.", context, rc);
}
if (bricklet_reachable && ++consecutive_bricklet_errors >= 8) {
bricklet_reachable = false;
set_error(ERROR_FLAGS_BRICKLET_MASK);
logger.printfln_plain("(%s) Bricklet is unreachable.", context);
logger.printfln("%s: Bricklet is unreachable.", context);
}
}
low_level_state.get("consecutive_bricklet_errors")->updateUint(consecutive_bricklet_errors);
Expand Down

0 comments on commit 6e5d34f

Please sign in to comment.