backlightMode ON is -4
Seems the field is read as a signed 3 bit integer from `.otx`.
This commit is contained in:
@@ -100,7 +100,7 @@ Node convert<GeneralSettings>::encode(const GeneralSettings& rhs)
|
||||
node["vBatMin"] = rhs.vBatMin + 90;
|
||||
node["vBatMax"] = rhs.vBatMax + 120;
|
||||
|
||||
node["backlightMode"] = backlightModeLut << rhs.backlightMode;
|
||||
node["backlightMode"] = backlightModeLut << std::abs(rhs.backlightMode);
|
||||
node["trainer"] = rhs.trainer;
|
||||
node["view"] = rhs.view;
|
||||
node["fai"] = (int)rhs.fai;
|
||||
|
||||
Reference in New Issue
Block a user