Add debug output for before() and setup()
This commit is contained in:
@@ -76,8 +76,10 @@ void _begin() {
|
||||
debug(PSTR("MCO:BGN:INIT " MY_NODE_TYPE ",CP=" MY_CAPABILITIES ",VER=" MYSENSORS_LIBRARY_VERSION "\n"));
|
||||
|
||||
// Call before() in sketch (if it exists)
|
||||
if (before)
|
||||
if (before) {
|
||||
debug(PSTR("MCO:BGN:BFR\n")); // before callback
|
||||
before();
|
||||
}
|
||||
|
||||
#if defined(MY_LEDS_BLINKING_FEATURE)
|
||||
ledsInit();
|
||||
@@ -158,6 +160,7 @@ void _begin() {
|
||||
|
||||
// Call sketch setup
|
||||
if (setup) {
|
||||
debug(PSTR("MCO:BGN:STP\n")); // setup callback
|
||||
setup();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user