@@ -236,10 +236,13 @@ void MainWindow::slotProgReadDeviceIdCompleted(int status)
236
236
idStr.sprintf (" 0x%02X 0x%02X 0x%02X 0x%02X" , chipId.makerId ,
237
237
chipId.deviceId , chipId.thirdId , chipId.fourthId );
238
238
ui->deviceValueLabel ->setText (idStr);
239
+
240
+ qInfo () << QString (" ID " ).append (idStr).toLatin1 ().data ();
239
241
}
240
242
241
243
void MainWindow::slotProgReadDeviceId ()
242
244
{
245
+ qInfo () << " Reading chip ID ..." ;
243
246
connect (prog, SIGNAL (readChipIdCompleted (int )), this ,
244
247
SLOT (slotProgReadDeviceIdCompleted (int )));
245
248
prog->readChipId (&chipId);
@@ -265,6 +268,8 @@ void MainWindow::slotProgErase()
265
268
return ;
266
269
}
267
270
271
+ qInfo () << " Erasing chip ..." ;
272
+
268
273
connect (prog, SIGNAL (eraseChipCompleted (int )), this ,
269
274
SLOT (slotProgEraseCompleted (int )));
270
275
@@ -308,6 +313,8 @@ void MainWindow::slotProgRead()
308
313
return ;
309
314
}
310
315
316
+ qInfo () << " Reading data ..." ;
317
+
311
318
connect (prog, SIGNAL (readChipCompleted (int )), this ,
312
319
SLOT (slotProgReadCompleted (int )));
313
320
@@ -348,6 +355,8 @@ void MainWindow::slotProgWrite()
348
355
return ;
349
356
}
350
357
358
+ qInfo () << " Writing data ..." ;
359
+
351
360
connect (prog, SIGNAL (writeChipCompleted (int )), this ,
352
361
SLOT (slotProgWriteCompleted (int )));
353
362
@@ -365,6 +374,8 @@ void MainWindow::slotProgReadBadBlocksCompleted(int status)
365
374
366
375
void MainWindow::slotProgReadBadBlocks ()
367
376
{
377
+ qInfo () << " Reading bad blocks ..." ;
378
+
368
379
connect (prog, SIGNAL (readChipBadBlocksCompleted (int )), this ,
369
380
SLOT (slotProgReadBadBlocksCompleted (int )));
370
381
@@ -379,7 +390,7 @@ void MainWindow::slotProgSelectCompleted(int status)
379
390
if (!status)
380
391
{
381
392
setUiStateSelected (true );
382
- qInfo () << " Chip has been selected successfully" ;
393
+ qInfo () << " Programmer configured successfully" ;
383
394
}
384
395
else
385
396
setUiStateSelected (false );
@@ -397,6 +408,8 @@ void MainWindow::slotSelectChip(int selectedChipNum)
397
408
return ;
398
409
}
399
410
411
+ qInfo () << " Configuring programmer ..." ;
412
+
400
413
connect (prog, SIGNAL (confChipCompleted (int )), this ,
401
414
SLOT (slotProgSelectCompleted (int )));
402
415
0 commit comments