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
@@ -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