add is_licensed for ham users

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

No files matched your search

+4
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();