mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
Fix Mac address parsing for top nibbles
This commit is contained in:
parent
470a9846da
commit
1cb37fbcd9
@ -1,4 +1,4 @@
|
||||
1v79 : ...
|
||||
1v79 : Fix Mac address parsing for top nibbles
|
||||
|
||||
1v78 : Fix regression where SPI2/3 weren't working on most pins (fix #525)
|
||||
Allow MAC address to be set for WIZnet (fix #527)
|
||||
|
||||
@ -64,7 +64,7 @@ bool networkParseMACAddress(unsigned char *addr, const char *ip) {
|
||||
while (*ip) {
|
||||
int v = chtod(*ip);
|
||||
if (v>=0 && v<16) {
|
||||
n = n*10 + v;
|
||||
n = n*16 + v;
|
||||
} else if (*ip==':') {
|
||||
addr[i++] = n;
|
||||
n=0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user