feat: option to disable power on/off haptic (#5017)
This commit is contained in:
@@ -279,6 +279,7 @@ Node convert<GeneralSettings>::encode(const GeneralSettings& rhs)
|
||||
node["antennaMode"] = antennaModeLut << rhs.antennaMode;
|
||||
node["pwrOnSpeed"] = rhs.pwrOnSpeed;
|
||||
node["pwrOffSpeed"] = rhs.pwrOffSpeed;
|
||||
node["disablePwrOnOffHaptic"] = (int)rhs.disablePwrOnOffHaptic;
|
||||
|
||||
for (int i = 0; i < CPN_MAX_SPECIAL_FUNCTIONS; i++) {
|
||||
const CustomFunctionData& fn = rhs.customFn[i];
|
||||
@@ -557,6 +558,7 @@ bool convert<GeneralSettings>::decode(const Node& node, GeneralSettings& rhs)
|
||||
node["backlightColor"] >> rhs.backlightColor;
|
||||
node["pwrOnSpeed"] >> rhs.pwrOnSpeed;
|
||||
node["pwrOffSpeed"] >> rhs.pwrOffSpeed;
|
||||
node["disablePwrOnOffHaptic"] >> rhs.disablePwrOnOffHaptic;
|
||||
|
||||
if (node["customFn"]) {
|
||||
// decode common for radio GF and model SF and conversion test assumes decoding a model
|
||||
|
||||
Reference in New Issue
Block a user