mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 10:50:40 +00:00
Save devicestate (nodedb) on position config change (#1829)
This commit is contained in:
parent
97968213ff
commit
d4ea9568ac
@ -219,6 +219,8 @@ void AdminModule::handleSetConfig(const Config &c)
|
||||
DEBUG_MSG("Setting config: Position\n");
|
||||
config.has_position = true;
|
||||
config.position = c.payload_variant.position;
|
||||
// Save nodedb as well in case we got a fixed position packet
|
||||
nodeDB.saveToDisk(SEGMENT_DEVICESTATE);
|
||||
break;
|
||||
case Config_power_tag:
|
||||
DEBUG_MSG("Setting config: Power\n");
|
||||
|
Loading…
Reference in New Issue
Block a user