kopia lustrzana https://github.com/meshtastic/firmware
Set canned_message.enabled to true when setting defaults (#7414)
* Set canned_message.enabled to true when setting defaults * Re-split canned messages on updatepull/7415/head
rodzic
6c12baf4ed
commit
fff12979a2
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue