feat: option to automatically power off radio after inactivity (#3414)
This commit is contained in:
@@ -280,6 +280,7 @@ Node convert<GeneralSettings>::encode(const GeneralSettings& rhs)
|
||||
node["antennaMode"] = antennaModeLut << rhs.antennaMode;
|
||||
node["pwrOnSpeed"] = rhs.pwrOnSpeed;
|
||||
node["pwrOffSpeed"] = rhs.pwrOffSpeed;
|
||||
node["pwrOffIfInactive"] = rhs.pwrOffIfInactive; // Power off after inactivity
|
||||
node["disablePwrOnOffHaptic"] = (int)rhs.disablePwrOnOffHaptic;
|
||||
|
||||
for (int i = 0; i < CPN_MAX_SPECIAL_FUNCTIONS; i++) {
|
||||
@@ -559,6 +560,7 @@ bool convert<GeneralSettings>::decode(const Node& node, GeneralSettings& rhs)
|
||||
node["backlightColor"] >> rhs.backlightColor;
|
||||
node["pwrOnSpeed"] >> rhs.pwrOnSpeed;
|
||||
node["pwrOffSpeed"] >> rhs.pwrOffSpeed;
|
||||
node["pwrOffIfInactive"] >> rhs.pwrOffIfInactive; // Power off after inactivity
|
||||
node["disablePwrOnOffHaptic"] >> rhs.disablePwrOnOffHaptic;
|
||||
|
||||
if (node["customFn"]) {
|
||||
|
||||
Reference in New Issue
Block a user