@@ -248,11 +248,11 @@ void MainWindow::slotProgReadDeviceIdCompleted(int status)
248
248
return ;
249
249
250
250
idStr = tr (" 0x%1 0x%2 0x%3 0x%4 0x%5" )
251
- .arg (chipId.makerId , 2 , 16 )
252
- .arg (chipId.deviceId , 2 , 16 )
253
- .arg (chipId.thirdId , 2 , 16 )
254
- .arg (chipId.fourthId , 2 , 16 )
255
- .arg (chipId.fifthId , 2 , 16 );
251
+ .arg (chipId.makerId , 2 , 16 , QLatin1Char ( ' 0 ' ) )
252
+ .arg (chipId.deviceId , 2 , 16 , QLatin1Char ( ' 0 ' ) )
253
+ .arg (chipId.thirdId , 2 , 16 , QLatin1Char ( ' 0 ' ) )
254
+ .arg (chipId.fourthId , 2 , 16 , QLatin1Char ( ' 0 ' ) )
255
+ .arg (chipId.fifthId , 2 , 16 , QLatin1Char ( ' 0 ' ) );
256
256
ui->deviceValueLabel ->setText (idStr);
257
257
258
258
qInfo () << QString (" ID " ).append (idStr).toLatin1 ().data ();
@@ -525,11 +525,11 @@ void MainWindow::slotProgDetectChipReadChipIdCompleted(int status)
525
525
return ;
526
526
527
527
idStr = tr (" 0x%1 0x%2 0x%3 0x%4 0x%5" )
528
- .arg (chipId.makerId , 2 , 16 )
529
- .arg (chipId.deviceId , 2 , 16 )
530
- .arg (chipId.thirdId , 2 , 16 )
531
- .arg (chipId.fourthId , 2 , 16 )
532
- .arg (chipId.fifthId , 2 , 16 );
528
+ .arg (chipId.makerId , 2 , 16 , QLatin1Char ( ' 0 ' ) )
529
+ .arg (chipId.deviceId , 2 , 16 , QLatin1Char ( ' 0 ' ) )
530
+ .arg (chipId.thirdId , 2 , 16 , QLatin1Char ( ' 0 ' ) )
531
+ .arg (chipId.fourthId , 2 , 16 , QLatin1Char ( ' 0 ' ) )
532
+ .arg (chipId.fifthId , 2 , 16 ), QLatin1Char ( ' 0 ' ) ;
533
533
534
534
ui->deviceValueLabel ->setText (idStr);
535
535
0 commit comments