diff --git a/ek9000App/src/devEK9000.cpp b/ek9000App/src/devEK9000.cpp index 04bd4a6..60075fb 100644 --- a/ek9000App/src/devEK9000.cpp +++ b/ek9000App/src/devEK9000.cpp @@ -473,7 +473,7 @@ int CEK9000Device::InitTerminals() /* Figure out the register map */ int coil_in = 1, coil_out = 1; - int reg_in = 1, reg_out = 0x800; + int reg_in = 0, reg_out = 0x800; /* in = holding regs, out = inp regs */ /* analog terms are mapped FIRST */ /* then digital termas are mapped */ @@ -2021,4 +2021,4 @@ int EK9K_ParseString(const char* str, ek9k_param_t* param) return 1; } return 0; -} \ No newline at end of file +} diff --git a/ek9000App/src/devEL3XXX.cpp b/ek9000App/src/devEL3XXX.cpp index 46e35da..58a7552 100644 --- a/ek9000App/src/devEL3XXX.cpp +++ b/ek9000App/src/devEL3XXX.cpp @@ -82,7 +82,6 @@ for swapping the bytes around here. */ struct SEL30XXStandardInputPDO { - uint16_t value; uint8_t underrange : 1; uint8_t overrange : 1; uint8_t limit1 : 2; @@ -91,6 +90,7 @@ struct SEL30XXStandardInputPDO uint8_t _r2 : 6; uint8_t txpdo_state : 1; uint8_t txpdo_toggle : 1; + uint16_t value; }; struct SEL30XXCompactInputPDO