Skip to content

Commit

Permalink
Minor format
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane committed Jul 17, 2024
1 parent 082d532 commit 47ff9ef
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 @@ -1058,7 +1058,7 @@ int modbus_reply(modbus_t *ctx,
uint16_t and = (req[offset + 3] << 8) + req[offset + 4];
uint16_t or = (req[offset + 5] << 8) + req[offset + 6];

data = (data & and) | (or &(~and));
data = (data & and) | (or &(~and) );
mb_mapping->tab_registers[mapping_address] = data;
memcpy(rsp, req, req_length);
rsp_length = req_length;
Expand Down

0 comments on commit 47ff9ef

Please sign in to comment.