Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2018-10-30 01:29:15 +0300
committerDavid Crocker <dcrocker@eschertech.com>2018-10-30 01:29:15 +0300
commit891a7ff5fb578a82d3ae43f1748be7a347634bee (patch)
tree8d435289a7fdf8c9c29fbc5d03b0bcc7ca4845df /src/Networking/LwipEthernet/LwipEthernetInterface.cpp
parent5b53947769cc67b79e0c9f316311e43665638c0f (diff)
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
Diffstat (limited to 'src/Networking/LwipEthernet/LwipEthernetInterface.cpp')
-rw-r--r--src/Networking/LwipEthernet/LwipEthernetInterface.cpp5
1 files changed, 3 insertions, 2 deletions
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)