Skip to content

Commit 668fbcc

Browse files
committed
Fix PR #295 BT MAC overrun
Reduce MAC printing from four characters to two characters
1 parent fa5bf57 commit 668fbcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firmware/RTK_Surveyor/Display.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ void updateDisplay()
362362
const uint8_t * rtkMacAddress = getMacAddress();
363363

364364
//Print only last two digits of MAC
365-
sprintf(macAddress, "%02X%02X", rtkMacAddress[4], rtkMacAddress[5]);
365+
sprintf(macAddress, "%02X", rtkMacAddress[5]);
366366
oled.setFont(QW_FONT_5X7); //Set font to smallest
367367
oled.setCursor(0, 3);
368368
oled.print(macAddress);
@@ -406,7 +406,7 @@ void updateDisplay()
406406
const uint8_t * rtkMacAddress = getMacAddress();
407407

408408
//Print only last two digits of MAC
409-
sprintf(macAddress, "%02X%02X", rtkMacAddress[4], rtkMacAddress[5]);
409+
sprintf(macAddress, "%02X", rtkMacAddress[5]);
410410
oled.setFont(QW_FONT_5X7); //Set font to smallest
411411
oled.setCursor(14, 3);
412412
oled.print(macAddress);

0 commit comments

Comments
 (0)