Fixed MAC address display

This commit is contained in:
Neale Pickett 2024-06-09 21:16:11 -07:00
parent 7f1756eccc
commit 1a4d506a47
2 changed files with 9 additions and 7 deletions

View File

@ -1,4 +1,9 @@
## v2 - 2024-06-09
## 2.1 - 2024-06-09
### Fixed
* MAC address on boot now displayed correctly.
## 2.0 - 2024-06-09
### Added
* New Clock mode with arabic numerals
* Firmware version now displayed at boot time

View File

@ -202,12 +202,9 @@ void displayMacAddress(int cycles=40) {
}
// Middle: MAC address
for (int octet = 0; octet < 6; octet++) {
for (int i = 0; i < 8; i++) {
int pos = 8 + (octet*8) + (7-i);
bool bit = (addr>>(octet*8 + i)) & 1;
grid[pos] = bit ? CRGB::Yellow: CRGB::Black;
}
for (int i = 0; i < 48; i++) {
int pos = i + 8;
grid[pos] = CHSV(HUE_YELLOW, 255, ((addr>>(47-i)) & 1)?255:64);
}
// Bottom: connected status