Merge pull request #7 from jstck/patch-1

Change MAC address input format
This commit is contained in:
dc42 2014-08-17 09:58:06 +01:00
commit e220d7cd0a

View file

@ -1344,7 +1344,7 @@ void GCodes::SetMACAddress(GCodeBuffer *gb)
{
if(ipString[sp] == ':')
{
mac[ipp] = strtol(&ipString[spp], NULL, 0);
mac[ipp] = strtol(&ipString[spp], NULL, 16);
ipp++;
if(ipp > 5)
{
@ -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);