Make consoleInit() Reentrant, and initialize it earlier on native (#10156)
This commit is contained in:
co-authored by
GitHub
parent
d6cf67b6bc
commit
125c1b7f13
@@ -30,6 +30,9 @@ SerialConsole *console;
|
||||
|
||||
void consoleInit()
|
||||
{
|
||||
if (console) {
|
||||
return;
|
||||
}
|
||||
auto sc = new SerialConsole(); // Must be dynamically allocated because we are now inheriting from thread
|
||||
|
||||
#if defined(SERIAL_HAS_ON_RECEIVE)
|
||||
|
||||
Reference in New Issue
Block a user