Fix Mac address parsing for top nibbles

This commit is contained in:
Gordon Williams 2015-05-05 09:25:45 +01:00
parent 470a9846da
commit 1cb37fbcd9
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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;