From f9d06c8c7621000ef5ee2ad0a64abcdc9614f614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20St=C3=A4ck?= Date: Sat, 16 Aug 2014 22:11:34 +0200 Subject: [PATCH] Remember second strtol as well Same change to the strtol a few lines down, affecting the last byte of the MAC address. --- GCodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GCodes.cpp b/GCodes.cpp index a7a5f6b..b29f19c 100644 --- a/GCodes.cpp +++ b/GCodes.cpp @@ -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);