add Uart _begun, fix potetial hard fault with Debug level ON but Serial.begin() is not called
This commit is contained in:
1 parent
555e4a368a
commit
fe148b78d7
3 files changed
+11
-1
No files matched your search
@@ -34,6 +34,8 @@ static void loop_task(void* arg)
|
||||
setup();
|
||||
|
||||
#if CFG_DEBUG
|
||||
// If Serial is not begin(), call it to avoid hard fault
|
||||
if (!Serial) Serial.begin(115200);
|
||||
dbgPrintVersion();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user