Skip to content

Commit

Permalink
Fixed incorrect offset of values
Browse files Browse the repository at this point in the history
  • Loading branch information
JJL772 committed Feb 21, 2020
1 parent d308757 commit 782c580
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ek9000App/src/devEK9000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -2021,4 +2021,4 @@ int EK9K_ParseString(const char* str, ek9k_param_t* param)
return 1;
}
return 0;
}
}
2 changes: 1 addition & 1 deletion ek9000App/src/devEL3XXX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 782c580

Please sign in to comment.