diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-01-26 23:56:03 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-01-26 23:56:03 +0300 |
commit | 79df4b88ed68875cd58ef4e1ec5ea22f9ab9d55e (patch) | |
tree | 701938eab5583381e5896116dec79e21cc278a82 /src/Networking/LwipEthernet/LwipEthernetInterface.h | |
parent | 6e8f8223fd862eae27545ead596b52c5a6a46ca2 (diff) |
Refactored MAC address code
M540 on Duet WiFi now returns correct MAC address
MAC address added to object model
WiFi firmware version now returned correctly in object model
Diffstat (limited to 'src/Networking/LwipEthernet/LwipEthernetInterface.h')
-rw-r--r-- | src/Networking/LwipEthernet/LwipEthernetInterface.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Networking/LwipEthernet/LwipEthernetInterface.h b/src/Networking/LwipEthernet/LwipEthernetInterface.h index d4269cd3..04c57947 100644 --- a/src/Networking/LwipEthernet/LwipEthernetInterface.h +++ b/src/Networking/LwipEthernet/LwipEthernetInterface.h @@ -48,8 +48,8 @@ public: void UpdateHostname(const char *hostname) noexcept override; IPAddress GetIPAddress() const noexcept override; void SetIPAddress(IPAddress p_ipAddress, IPAddress p_netmask, IPAddress p_gateway) noexcept override; - void SetMacAddress(const uint8_t mac[]) noexcept override; - const uint8_t *GetMacAddress() const noexcept override { return macAddress; } + GCodeResult SetMacAddress(const MacAddress& mac, const StringRef& reply) noexcept override; + const MacAddress& GetMacAddress() const noexcept override { return macAddress; } // LwIP interfaces bool ConnectionEstablished(tcp_pcb *pcb) noexcept; @@ -105,7 +105,7 @@ private: IPAddress ipAddress; IPAddress netmask; IPAddress gateway; - uint8_t macAddress[6]; + MacAddress macAddress; }; #endif |