Skip to content

Commit

Permalink
Unremove firmwareOptions uid when customizing
Browse files Browse the repository at this point in the history
  • Loading branch information
CapnBry committed Jul 30, 2024
1 parent 4d8870e commit 0f346db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/OPTIONS/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ void saveOptions(Stream &stream, bool customised)
{
JsonDocument doc;

if (firmwareOptions.hasUID)
{
JsonArray uid = doc.createNestedArray("uid");
copyArray(firmwareOptions.uid, sizeof(firmwareOptions.uid), uid);
}
if (firmwareOptions.wifi_auto_on_interval != -1)
{
doc["wifi-on-interval"] = firmwareOptions.wifi_auto_on_interval / 1000;
Expand Down

0 comments on commit 0f346db

Please sign in to comment.