fix(cpn): models and settings binary import (#4890)

This commit is contained in:
Neil Horne
2024-04-23 12:00:21 +10:00
committed by GitHub
parent 4e2608fa0a
commit 25bf3334cc
8 changed files with 58 additions and 35 deletions
@@ -215,6 +215,12 @@ bool OpenTxEepromInterface::loadFromByteArray(T & dest, const QByteArray & data)
return false;
}
}
if (board != getCurrentBoard()) {
qDebug() << QString("%1: not a match to profile %2").arg(getName()).arg(Boards::getBoardName(getCurrentBoard()));
return false;
}
qDebug() << QString("%1: OK").arg(getName());
uint8_t version = data[4];
QByteArray raw = data.right(data.size() - 8);