Remember second strtol as well

Same change to the strtol a few lines down, affecting the last byte of the MAC address.
This commit is contained in:
John Stäck 2014-08-16 22:11:34 +02:00
parent 6a80aaa7f3
commit f9d06c8c76

View file

@ -1358,7 +1358,7 @@ void GCodes::SetMACAddress(GCodeBuffer *gb)
}else
sp++;
}
mac[ipp] = strtol(&ipString[spp], NULL, 0);
mac[ipp] = strtol(&ipString[spp], NULL, 16);
if(ipp == 5)
{
platform->SetMACAddress(mac);