Make consoleInit() Reentrant, and initialize it earlier on native

This commit is contained in:
Jonathan Bennett
2026-04-13 20:56:44 -05:00
parent 8f2ecbdb4d
commit e393a5c410
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -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)