mirror of
https://github.com/radiomanV/TL866.git
synced 2026-03-10 02:07:05 +01:00
Code cleanup
This commit is contained in:
@@ -318,7 +318,6 @@ void MainWindow::on_btnDump_clicked()
|
||||
watcher.setProperty("hex_path", fileName);
|
||||
ui->progressBar->setMaximum(FLASH_SIZE - 1);
|
||||
watcher.setFuture(QtConcurrent::map(job_list, WorkerWrapper(this)));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -595,6 +594,7 @@ void MainWindow::reflash_finished(bool success)
|
||||
//Dump finished SLOT
|
||||
void MainWindow::dump_finished(QString result)
|
||||
{
|
||||
Refresh();
|
||||
if(result.isEmpty())
|
||||
QMessageBox::information(this, "TL866", "Firmware dump complete!");
|
||||
else
|
||||
|
||||
@@ -112,7 +112,7 @@ bool USB::isOpen()
|
||||
size_t USB::usb_read(unsigned char *data, DWORD size)
|
||||
{
|
||||
DWORD bytes_read;
|
||||
uchar buffer[4];
|
||||
uchar buffer[6];
|
||||
if (hDriver == INVALID_HANDLE_VALUE)
|
||||
return 0;
|
||||
EnterCriticalSection(&lock);
|
||||
|
||||
Reference in New Issue
Block a user