add Uart _begun, fix potetial hard fault with Debug level ON but Serial.begin() is not called

This commit is contained in:
hathach committed 2017-03-17 13:36:26 +07:00
1 parent 555e4a368a
commit fe148b78d7
3 files changed
+11 -1

No files matched your search

+2
View File
@@ -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