This commit is contained in:
Bertrand Songis
2019-07-04 20:05:42 +02:00
parent 9b5673ef73
commit 0a92dc4f4b
2 changed files with 1 additions and 2 deletions
@@ -305,8 +305,6 @@ 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);
}
@@ -168,6 +168,7 @@ void OpenTxSimulator::setRadioData(const QByteArray & data)
{
#if defined(EEPROM_SIZE)
QMutexLocker lckr(&m_mtxRadioData);
eeprom = (uint8_t *)malloc(qMin<int>(EEPROM_SIZE, data.size()));
memcpy(eeprom, data.data(), qMin<int>(EEPROM_SIZE, data.size()));
#endif
}