Merge pull request #7 from jstck/patch-1
Change MAC address input format
This commit is contained in:
commit
e220d7cd0a
1 changed files with 2 additions and 2 deletions
|
@ -1344,7 +1344,7 @@ void GCodes::SetMACAddress(GCodeBuffer *gb)
|
||||||
{
|
{
|
||||||
if(ipString[sp] == ':')
|
if(ipString[sp] == ':')
|
||||||
{
|
{
|
||||||
mac[ipp] = strtol(&ipString[spp], NULL, 0);
|
mac[ipp] = strtol(&ipString[spp], NULL, 16);
|
||||||
ipp++;
|
ipp++;
|
||||||
if(ipp > 5)
|
if(ipp > 5)
|
||||||
{
|
{
|
||||||
|
@ -1358,7 +1358,7 @@ void GCodes::SetMACAddress(GCodeBuffer *gb)
|
||||||
}else
|
}else
|
||||||
sp++;
|
sp++;
|
||||||
}
|
}
|
||||||
mac[ipp] = strtol(&ipString[spp], NULL, 0);
|
mac[ipp] = strtol(&ipString[spp], NULL, 16);
|
||||||
if(ipp == 5)
|
if(ipp == 5)
|
||||||
{
|
{
|
||||||
platform->SetMACAddress(mac);
|
platform->SetMACAddress(mac);
|
||||||
|
|
Reference in a new issue