Skip to content

Commit

Permalink
Fix #159443 - Index of incoming data in force multiple coils function
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane committed Jan 21, 2010
1 parent 31400c9 commit fb2485c
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 @@ -1013,6 +1013,7 @@ int force_multiple_coils(modbus_param_t *mb_param, int slave,
int coil_check = 0;
int status;
int query_ret;
int pos = 0;

unsigned char query[MAX_PACKET_SIZE];

Expand All @@ -1028,7 +1029,6 @@ int force_multiple_coils(modbus_param_t *mb_param, int slave,

for (i = 0; i < byte_count; i++) {
int bit;
int pos = 0;

bit = 0x01;
query[query_size] = 0;
Expand Down

0 comments on commit fb2485c

Please sign in to comment.