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