From 8ef510035de78e75c630f4d6f5b26890e01cc3b6 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Thu, 22 Sep 2022 08:02:58 -0500 Subject: [PATCH] Owner reboot (#1716) --- src/modules/AdminModule.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/AdminModule.cpp b/src/modules/AdminModule.cpp index 5aa91aed7..9dcdcda9c 100644 --- a/src/modules/AdminModule.cpp +++ b/src/modules/AdminModule.cpp @@ -169,8 +169,12 @@ void AdminModule::handleSetOwner(const User &o) 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(); + DEBUG_MSG("Rebooting due to owner changes\n"); + screen->startRebootScreen(); + rebootAtMsec = millis() + (5 * 1000); + } } void AdminModule::handleSetConfig(const Config &c)