Skip to content

Commit

Permalink
set custom console null check (fixes #224)
Browse files Browse the repository at this point in the history
  • Loading branch information
matth-x committed Oct 28, 2023
1 parent cf532c4 commit b99b821
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MicroOcpp/Platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ void MicroOcpp::mocpp_console_out(const char *msg) {

void mocpp_set_console_out(void (*console_out)(const char *msg)) {
MicroOcpp::mocpp_console_out_impl = console_out;
console_out("[OCPP] console initialized\n");
if (console_out) {
console_out("[OCPP] console initialized\n");
}
}

#endif
Expand Down

0 comments on commit b99b821

Please sign in to comment.