Skip to content

Commit

Permalink
changed default END to BE (update readme as well)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-zhuravlev committed Jun 10, 2017
1 parent 193b413 commit bb9ac10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ int zbx_modbus_read_registers(AGENT_REQUEST *request, AGENT_RESULT *result)
}

char datatype;
int end = MODBUS_16BIT_LE; //<endianness> endianness LE(0) BE(1) default LE
int end = MODBUS_16BIT_BE; //<endianness> endianness LE(0) BE(1) default BE
if (request->nparam > 4) { //optional params provided

param5 = get_rparam(request, 4); //datatype
Expand Down

0 comments on commit bb9ac10

Please sign in to comment.