Skip to content

Commit 6b5eb47

Browse files
committed
Fix four character BT printing
1 parent f769d56 commit 6b5eb47

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
@@ -361,8 +361,8 @@ void updateDisplay()
361361
char macAddress[5];
362362
const uint8_t * rtkMacAddress = getMacAddress();
363363

364-
//Print only last two digits of MAC
365-
sprintf(macAddress, "%02X", rtkMacAddress[5]);
364+
//Print four characters of MAC
365+
sprintf(macAddress, "%02%02X", rtkMacAddress[4], rtkMacAddress[5]);
366366
oled.setFont(QW_FONT_5X7); //Set font to smallest
367367
oled.setCursor(0, 3);
368368
oled.print(macAddress);

0 commit comments

Comments
 (0)