oops: we should crash if we >MAX_THREADS, also raise max threads

This commit is contained in:
Kevin Hester 2021-02-14 15:06:49 +08:00
parent 450e877cfb
commit c55074f7fe
2 changed files with 5 additions and 3 deletions

View File

@ -75,7 +75,7 @@ lib_deps =
https://github.com/meshtastic/AXP202X_Library.git#8404abb6d4b486748636bc6ad72d2a47baaf5460 https://github.com/meshtastic/AXP202X_Library.git#8404abb6d4b486748636bc6ad72d2a47baaf5460
Wire ; explicitly needed here because the AXP202 library forgets to add it Wire ; explicitly needed here because the AXP202 library forgets to add it
SPI SPI
https://github.com/geeksville/ArduinoThread.git#333ffd09b596977c217ba25da4258f588b462ac6 https://github.com/geeksville/ArduinoThread.git#72921ac222eed6f526ba1682023cee290d9aa1b3
; Common settings for conventional (non Portduino) Ardino targets ; Common settings for conventional (non Portduino) Ardino targets
[arduino_base] [arduino_base]

View File

@ -32,8 +32,10 @@ OSThread::OSThread(const char *_name, uint32_t period, ThreadController *_contro
ThreadName = _name; ThreadName = _name;
if (controller) if (controller) {
controller->add(this); bool added = controller->add(this);
assert(added);
}
} }
OSThread::~OSThread() OSThread::~OSThread()