mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-29 14:10:53 +00:00
Set canned_message.enabled to true when setting defaults (#7414)
* Set canned_message.enabled to true when setting defaults * Re-split canned messages on update
This commit is contained in:
@@ -56,6 +56,7 @@ CannedMessageModule::CannedMessageModule()
|
||||
disable();
|
||||
} else {
|
||||
LOG_INFO("CannedMessageModule is enabled");
|
||||
moduleConfig.canned_message.enabled = true;
|
||||
this->inputObserver.observe(inputBroker);
|
||||
}
|
||||
}
|
||||
@@ -2075,6 +2076,9 @@ void CannedMessageModule::handleSetCannedMessageModuleMessages(const char *from_
|
||||
|
||||
if (changed) {
|
||||
this->saveProtoForModule();
|
||||
if (splitConfiguredMessages()) {
|
||||
moduleConfig.canned_message.enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user