From d531c334d4bee3533db41c0f71d924f0f3bcdddc Mon Sep 17 00:00:00 2001 From: radiomanV Date: Fri, 26 Jan 2018 22:36:48 +0200 Subject: [PATCH] Code cleanup --- TL866_Updater/QT/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TL866_Updater/QT/mainwindow.cpp b/TL866_Updater/QT/mainwindow.cpp index 9662210..a817d79 100644 --- a/TL866_Updater/QT/mainwindow.cpp +++ b/TL866_Updater/QT/mainwindow.cpp @@ -590,8 +590,9 @@ void MainWindow::dump(QString fileName, uint device_type) return; } emit update_progress(i); - usb_device->close_device(); } + usb_device->close_device(); + //Because the region 0x1800-0x1FBFF contains the dumper we overwrite it with the normal firmware from the update.dat file. firmware.decrypt_firmware((uchar*)&temp.data()[BOOTLOADER_SIZE], device_type );