mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-03 03:09:59 +00:00
Owner reboot (#1716)
This commit is contained in:
parent
883a2ebac0
commit
8ef510035d
@ -169,8 +169,12 @@ void AdminModule::handleSetOwner(const User &o)
|
|||||||
owner.is_licensed = o.is_licensed;
|
owner.is_licensed = o.is_licensed;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (changed) // If nothing really changed, don't broadcast on the network or write to flash
|
if (changed) { // If nothing really changed, don't broadcast on the network or write to flash
|
||||||
service.reloadOwner();
|
service.reloadOwner();
|
||||||
|
DEBUG_MSG("Rebooting due to owner changes\n");
|
||||||
|
screen->startRebootScreen();
|
||||||
|
rebootAtMsec = millis() + (5 * 1000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AdminModule::handleSetConfig(const Config &c)
|
void AdminModule::handleSetConfig(const Config &c)
|
||||||
|
Loading…
Reference in New Issue
Block a user