Fix
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user