Projectkk2glider/misc fixes (#4331)
* Re #4326: default backlight mode keys+sticks * Re #4329: when saving radio/model data work on a copy of it, because Export() can change values. Fixes switch warnings change for Horus
This commit is contained in:
committed by
Bertrand Songis
parent
d5e3fabf03
commit
8eadee0719
@@ -1075,6 +1075,9 @@ GeneralSettings::GeneralSettings()
|
||||
switchConfig[i] = getSwitchInfo(board, i).config;
|
||||
}
|
||||
|
||||
backlightMode = 3; // keys and sticks
|
||||
// backlightBright = 0; // 0 = 100%
|
||||
|
||||
if (IS_HORUS(board)) {
|
||||
backlightOffBright = 20;
|
||||
}
|
||||
|
||||
@@ -155,7 +155,8 @@ bool OpenTxEepromInterface::saveToByteArray(const T & src, QByteArray & data, ui
|
||||
version = getLastDataVersion(getBoard());
|
||||
}
|
||||
QByteArray raw;
|
||||
M manager((T&)src, board, version, 0);
|
||||
T srcCopy(src); // work on a copy of radio data, because Export() will modify it!
|
||||
M manager(srcCopy, board, version, 0);
|
||||
// manager.Dump();
|
||||
manager.Export(raw);
|
||||
data.resize(8);
|
||||
|
||||
Reference in New Issue
Block a user