mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
Fix
This commit is contained in:
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
|
// 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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue