Code cleanup

This commit is contained in:
radiomanV
2018-01-24 17:07:20 +02:00
parent 47ffca7fee
commit 620aec1478
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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);