add is_licensed for ham users

This commit is contained in:
Kevin Hester
2021-04-10 11:39:13 +08:00
parent e71758457b
commit 5e87ee338d
4 changed files with 14 additions and 7 deletions

View File

@@ -115,6 +115,10 @@ void AdminPlugin::handleSetOwner(const User &o)
changed |= strcmp(owner.id, o.id);
strcpy(owner.id, o.id);
}
if (owner.is_licensed != o.is_licensed) {
changed = true;
owner.is_licensed = o.is_licensed;
}
if (changed) // If nothing really changed, don't broadcast on the network or write to flash
service.reloadOwner();