mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-10 11:57:25 +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();
|
disable();
|
||||||
} else {
|
} else {
|
||||||
LOG_INFO("CannedMessageModule is enabled");
|
LOG_INFO("CannedMessageModule is enabled");
|
||||||
|
moduleConfig.canned_message.enabled = true;
|
||||||
this->inputObserver.observe(inputBroker);
|
this->inputObserver.observe(inputBroker);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2075,6 +2076,9 @@ void CannedMessageModule::handleSetCannedMessageModuleMessages(const char *from_
|
|||||||
|
|
||||||
if (changed) {
|
if (changed) {
|
||||||
this->saveProtoForModule();
|
this->saveProtoForModule();
|
||||||
|
if (splitConfiguredMessages()) {
|
||||||
|
moduleConfig.canned_message.enabled = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user