@@ -371,16 +371,22 @@ void renderResultsToTFT(void)
371
371
372
372
for (uint8_t i=0 ; i<ARRAY_SIZE; i++)
373
373
{
374
+ if (records[i].addr [0 ] <= 0xF ) tft.print (" 0" );
374
375
tft.print (records[i].addr [0 ], HEX);
375
376
tft.print (" :" );
377
+ if (records[i].addr [1 ] <= 0xF ) tft.print (" 0" );
376
378
tft.print (records[i].addr [1 ], HEX);
377
379
tft.print (" :" );
380
+ if (records[i].addr [2 ] <= 0xF ) tft.print (" 0" );
378
381
tft.print (records[i].addr [2 ], HEX);
379
382
tft.print (" :" );
383
+ if (records[i].addr [3 ] <= 0xF ) tft.print (" 0" );
380
384
tft.print (records[i].addr [3 ], HEX);
381
385
tft.print (" :" );
386
+ if (records[i].addr [4 ] <= 0xF ) tft.print (" 0" );
382
387
tft.print (records[i].addr [4 ], HEX);
383
388
tft.print (" :" );
389
+ if (records[i].addr [5 ] <= 0xF ) tft.print (" 0" );
384
390
tft.print (records[i].addr [5 ], HEX);
385
391
tft.print (" " );
386
392
tft.print (records[i].rssi );
@@ -409,16 +415,22 @@ void renderResultsToOLED(void)
409
415
if (records[i].rssi != -128 )
410
416
{
411
417
oled.setCursor (0 , i*8 );
418
+ if (records[i].addr [0 ] <= 0xF ) oled.print (" 0" );
412
419
oled.print (records[i].addr [0 ], HEX);
413
420
oled.print (" :" );
421
+ if (records[i].addr [1 ] <= 0xF ) oled.print (" 0" );
414
422
oled.print (records[i].addr [1 ], HEX);
415
423
oled.print (" :" );
424
+ if (records[i].addr [2 ] <= 0xF ) oled.print (" 0" );
416
425
oled.print (records[i].addr [2 ], HEX);
417
426
oled.print (" :" );
427
+ if (records[i].addr [3 ] <= 0xF ) oled.print (" 0" );
418
428
oled.print (records[i].addr [3 ], HEX);
419
429
oled.print (" :" );
430
+ if (records[i].addr [4 ] <= 0xF ) oled.print (" 0" );
420
431
oled.print (records[i].addr [4 ], HEX);
421
432
oled.print (" :" );
433
+ if (records[i].addr [5 ] <= 0xF ) oled.print (" 0" );
422
434
oled.print (records[i].addr [5 ], HEX);
423
435
oled.print (" " );
424
436
oled.println (records[i].rssi );
0 commit comments