mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 10:21: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");
|
DEBUG_MSG("Setting config: Position\n");
|
||||||
config.has_position = true;
|
config.has_position = true;
|
||||||
config.position = c.payload_variant.position;
|
config.position = c.payload_variant.position;
|
||||||
|
// Save nodedb as well in case we got a fixed position packet
|
||||||
|
nodeDB.saveToDisk(SEGMENT_DEVICESTATE);
|
||||||
break;
|
break;
|
||||||
case Config_power_tag:
|
case Config_power_tag:
|
||||||
DEBUG_MSG("Setting config: Power\n");
|
DEBUG_MSG("Setting config: Power\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user