X3 EEPROM / simulator support added

This commit is contained in:
Bertrand Songis
2019-05-10 00:08:46 +02:00
parent d64397a38a
commit f32e9625c2
12 changed files with 99 additions and 50 deletions
@@ -74,6 +74,8 @@ const char * OpenTxEepromInterface::getName()
return "OpenTX for FrSky Taranis X9E";
case BOARD_TARANIS_X7:
return "OpenTX for FrSky Taranis X7";
case BOARD_TARANIS_X3:
return "OpenTX for FrSky Taranis X3";
case BOARD_TARANIS_XLITE:
return "OpenTX for FrSky Taranis X-Lite";
case BOARD_SKY9X:
@@ -300,6 +302,8 @@ int OpenTxEepromInterface::save(uint8_t * eeprom, const RadioData & radioData, u
{
// TODO QMessageBox::warning should not be called here
qDebug() << "ICI";
if (version == 0) {
version = getLastDataVersion(board);
}
@@ -1261,6 +1265,7 @@ OpenTxEepromInterface * loadFromByteArray(T & dest, const QByteArray & data)
template <class T, class M>
bool saveToByteArray(const T & dest, QByteArray & data)
{
qDebug() << "ICI SAVE";
Board::Type board = getCurrentBoard();
foreach(OpenTxEepromInterface * eepromInterface, opentxEEpromInterfaces) {
if (eepromInterface->getBoard() == board) {