We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf532c4 commit b99b821Copy full SHA for b99b821
src/MicroOcpp/Platform.cpp
@@ -18,7 +18,9 @@ void MicroOcpp::mocpp_console_out(const char *msg) {
18
19
void mocpp_set_console_out(void (*console_out)(const char *msg)) {
20
MicroOcpp::mocpp_console_out_impl = console_out;
21
- console_out("[OCPP] console initialized\n");
+ if (console_out) {
22
+ console_out("[OCPP] console initialized\n");
23
+ }
24
}
25
26
#endif
0 commit comments