Fixed MAC address display
This commit is contained in:
parent
7f1756eccc
commit
1a4d506a47
|
@ -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
|
### Added
|
||||||
* New Clock mode with arabic numerals
|
* New Clock mode with arabic numerals
|
||||||
* Firmware version now displayed at boot time
|
* Firmware version now displayed at boot time
|
||||||
|
|
|
@ -202,12 +202,9 @@ void displayMacAddress(int cycles=40) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Middle: MAC address
|
// Middle: MAC address
|
||||||
for (int octet = 0; octet < 6; octet++) {
|
for (int i = 0; i < 48; i++) {
|
||||||
for (int i = 0; i < 8; i++) {
|
int pos = i + 8;
|
||||||
int pos = 8 + (octet*8) + (7-i);
|
grid[pos] = CHSV(HUE_YELLOW, 255, ((addr>>(47-i)) & 1)?255:64);
|
||||||
bool bit = (addr>>(octet*8 + i)) & 1;
|
|
||||||
grid[pos] = bit ? CRGB::Yellow: CRGB::Black;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bottom: connected status
|
// Bottom: connected status
|
||||||
|
|
Loading…
Reference in New Issue