From 891a7ff5fb578a82d3ae43f1748be7a347634bee Mon Sep 17 00:00:00 2001 From: David Crocker Date: Mon, 29 Oct 2018 22:29:15 +0000 Subject: 2.02RC4 provisional (second attempt) Allow I2C addresses to be given in hex format Allow axes to be mapped ot nin-existant driver numbers More work on object model variable substitution in GCode commands Added a possible fix for coast-to-end --- src/Networking/LwipEthernet/LwipEthernetInterface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Networking/LwipEthernet/LwipEthernetInterface.cpp') diff --git a/src/Networking/LwipEthernet/LwipEthernetInterface.cpp b/src/Networking/LwipEthernet/LwipEthernetInterface.cpp index dc8dd614..ed89f892 100644 --- a/src/Networking/LwipEthernet/LwipEthernetInterface.cpp +++ b/src/Networking/LwipEthernet/LwipEthernetInterface.cpp @@ -149,10 +149,11 @@ LwipEthernetInterface::LwipEthernetInterface(Platform& p) : platform(p), closeDa const ObjectModelTableEntry LwipEthernetInterface::objectModelTable[] = { - { "name", OBJECT_MODEL_FUNC_NOSELF("ethernet"), TYPE_OF(const char *), ObjectModelTableEntry::none }, + // These entries must be in alphabetical order + { "gateway", OBJECT_MODEL_FUNC(&(self->gateway)), TYPE_OF(IPAddress), ObjectModelTableEntry::none }, { "ip", OBJECT_MODEL_FUNC(&(self->ipAddress)), TYPE_OF(IPAddress), ObjectModelTableEntry::none }, + { "name", OBJECT_MODEL_FUNC_NOSELF("ethernet"), TYPE_OF(const char *), ObjectModelTableEntry::none }, { "netmask", OBJECT_MODEL_FUNC(&(self->netmask)), TYPE_OF(IPAddress), ObjectModelTableEntry::none }, - { "gateway", OBJECT_MODEL_FUNC(&(self->gateway)), TYPE_OF(IPAddress), ObjectModelTableEntry::none } }; DEFINE_GET_OBJECT_MODEL_TABLE(LwipEthernetInterface) -- cgit v1.2.3