Add new factory_reset preferences option clients can set

This commit is contained in:
geeksville
2020-09-19 11:19:42 -07:00
parent bd126b866c
commit 3c0429deee
8 changed files with 52 additions and 21 deletions

View File

@@ -243,7 +243,10 @@ void PhoneAPI::handleSetRadio(const RadioConfig &r)
{
radioConfig = r;
service.reloadConfig();
bool didReset = service.reloadConfig();
if (didReset) {
state = STATE_SEND_MY_INFO; // Squirt a completely new set of configs to the client
}
}
/**