Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions cores/nRF5/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,7 @@ static void loop_task(void* arg)
TinyUSB_Device_Init(0);
#endif

#if defined(ARDUINO_Seeed_XIAO_nRF52840) || defined(ARDUINO_Seeed_XIAO_nRF52840_Sense) || defined(ARDUINO_Seeed_XIAO_nRF52840_Plus) || defined(ARDUINO_Seeed_XIAO_nRF52840_Sense_Plus)

#if CFG_DEBUG
// If Serial is not begin(), call it to avoid hard fault
if(!Serial) Serial.begin(115200);
#endif

#elif defined(ARDUINO_WIO_TRACKER_1110)
#if defined(ARDUINO_WIO_TRACKER_1110)

#if CFG_LOGGER == 0
// If Serial is not begin(), call it to avoid hard fault
Expand All @@ -81,7 +74,10 @@ static void loop_task(void* arg)

#else

#error "Unsupported board"
#if CFG_DEBUG
// If Serial is not begin(), call it to avoid hard fault
if(!Serial) Serial.begin(115200);
#endif

#endif

Expand Down