backlightMode ON is -4

Seems the field is read as a signed 3 bit integer from `.otx`.
This commit is contained in:
Raphael Coeffic
2022-01-01 11:39:17 +01:00
parent 25ee9369cf
commit e18219f53b
@@ -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;