1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 01:35:21 +03:00
This commit is contained in:
Bertrand Songis 2019-07-04 20:05:42 +02:00
parent 9b5673ef73
commit 0a92dc4f4b
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
2 changed files with 1 additions and 2 deletions

View file

@ -305,8 +305,6 @@ int OpenTxEepromInterface::save(uint8_t * eeprom, const RadioData & radioData, u
{ {
// TODO QMessageBox::warning should not be called here // TODO QMessageBox::warning should not be called here
qDebug() << "ICI";
if (version == 0) { if (version == 0) {
version = getLastDataVersion(board); version = getLastDataVersion(board);
} }

View file

@ -168,6 +168,7 @@ void OpenTxSimulator::setRadioData(const QByteArray & data)
{ {
#if defined(EEPROM_SIZE) #if defined(EEPROM_SIZE)
QMutexLocker lckr(&m_mtxRadioData); QMutexLocker lckr(&m_mtxRadioData);
eeprom = (uint8_t *)malloc(qMin<int>(EEPROM_SIZE, data.size()));
memcpy(eeprom, data.data(), qMin<int>(EEPROM_SIZE, data.size())); memcpy(eeprom, data.data(), qMin<int>(EEPROM_SIZE, data.size()));
#endif #endif
} }