Sleep a little bit more between read eeprom / flash / write eeprom on 9x
/ 9xr
This commit is contained in:
@@ -1328,7 +1328,7 @@ void MainWindow::writeFlash(QString fileToFlash)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (readEepromFromRadio(backupFile, tr("Backup Models and Settings From Radio"))) {
|
if (readEepromFromRadio(backupFile, tr("Backup Models and Settings From Radio"))) {
|
||||||
sleep(1);
|
sleep(2);
|
||||||
int res = writeFirmwareToRadio(fileName);
|
int res = writeFirmwareToRadio(fileName);
|
||||||
if (res) {
|
if (res) {
|
||||||
QString restoreFile = tempDir + "/restore.bin";
|
QString restoreFile = tempDir + "/restore.bin";
|
||||||
@@ -1336,7 +1336,7 @@ void MainWindow::writeFlash(QString fileToFlash)
|
|||||||
QMessageBox::warning(this, tr("Conversion failed"), tr("Cannot convert Models and Settings for use with this firmware, original data will be used"));
|
QMessageBox::warning(this, tr("Conversion failed"), tr("Cannot convert Models and Settings for use with this firmware, original data will be used"));
|
||||||
restoreFile = backupFile;
|
restoreFile = backupFile;
|
||||||
}
|
}
|
||||||
sleep(1);
|
sleep(2);
|
||||||
if (!writeEepromToRadio(restoreFile, tr("Restore Models and Settings To Radio"))) {
|
if (!writeEepromToRadio(restoreFile, tr("Restore Models and Settings To Radio"))) {
|
||||||
QMessageBox::warning(this, tr("Restore failed"), tr("Could not restore Models and Settings to Radio. The models and settings data file can be found at: %1").arg(backupFile));
|
QMessageBox::warning(this, tr("Restore failed"), tr("Could not restore Models and Settings to Radio. The models and settings data file can be found at: %1").arg(backupFile));
|
||||||
}
|
}
|
||||||
@@ -1362,6 +1362,7 @@ void MainWindow::writeFlash(QString fileToFlash)
|
|||||||
QDateTime datetime;
|
QDateTime datetime;
|
||||||
QString backupFile = backupPath+"/backup-"+QDateTime().currentDateTime().toString("yyyy-MM-dd-hhmmss")+".bin";
|
QString backupFile = backupPath+"/backup-"+QDateTime().currentDateTime().toString("yyyy-MM-dd-hhmmss")+".bin";
|
||||||
readEepromFromRadio(backupFile, tr("Backup Models and Settings From Radio"));
|
readEepromFromRadio(backupFile, tr("Backup Models and Settings From Radio"));
|
||||||
|
sleep(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
writeFirmwareToRadio(fileName);
|
writeFirmwareToRadio(fileName);
|
||||||
|
|||||||
Reference in New Issue
Block a user