mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 01:32:40 +00:00
a lot of thread housekeeping. Switch them off when not needed / disabled.
This commit is contained in:
@@ -55,10 +55,18 @@ CannedMessageModule::CannedMessageModule()
|
||||
if ((this->splitConfiguredMessages() <= 0) && (cardkb_found != CARDKB_ADDR)) {
|
||||
DEBUG_MSG("CannedMessageModule: No messages are configured. Module is disabled\n");
|
||||
this->runState = CANNED_MESSAGE_RUN_STATE_DISABLED;
|
||||
setInterval(INT32_MAX);
|
||||
enabled = false;
|
||||
} else {
|
||||
DEBUG_MSG("CannedMessageModule is enabled\n");
|
||||
this->inputObserver.observe(inputBroker);
|
||||
}
|
||||
setInterval(INT32_MAX);
|
||||
enabled = false;
|
||||
} else {
|
||||
this->runState = CANNED_MESSAGE_RUN_STATE_DISABLED;
|
||||
setInterval(INT32_MAX);
|
||||
enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user