File tree 3 files changed +8
-4
lines changed
examples/SecurityPersonalizer
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,6 @@ MY_DEFAULT_RX_LED_PIN in your sketch instead to enable LEDs
388
388
#include "core/MySensorsCore.cpp"
389
389
390
390
// HW mains
391
- #if !defined(MY_CORE_ONLY )
392
391
#if defined(ARDUINO_ARCH_AVR )
393
392
#include "hal/architecture/AVR/MyMainAVR.cpp"
394
393
#elif defined(ARDUINO_ARCH_SAMD )
@@ -404,7 +403,6 @@ MY_DEFAULT_RX_LED_PIN in your sketch instead to enable LEDs
404
403
#elif defined(TEENSYDUINO )
405
404
#include "hal/architecture/Teensy3/MyMainTeensy3.cpp"
406
405
#endif
407
- #endif
408
406
409
407
#endif
410
408
Original file line number Diff line number Diff line change @@ -88,6 +88,14 @@ void _infiniteLoop(void)
88
88
89
89
void _begin (void )
90
90
{
91
+ #if defined(MY_CORE_ONLY)
92
+ // initialize HW and run setup if present
93
+ (void )hwInit ();
94
+ if (setup) {
95
+ setup ();
96
+ }
97
+ return ;
98
+ #endif
91
99
// reset wdt
92
100
hwWatchdogReset ();
93
101
Original file line number Diff line number Diff line change @@ -439,9 +439,7 @@ void setup()
439
439
hwRandomNumberInit ();
440
440
#endif
441
441
442
- Serial.begin (MY_BAUD_RATE);
443
442
while (!Serial); // For USB enabled devices, wait for USB enumeration before continuing
444
- hwInit ();
445
443
446
444
print_greeting ();
447
445
You can’t perform that action at this time.
0 commit comments