We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 082d532 commit 47ff9efCopy full SHA for 47ff9ef
src/modbus.c
@@ -1058,7 +1058,7 @@ int modbus_reply(modbus_t *ctx,
1058
uint16_t and = (req[offset + 3] << 8) + req[offset + 4];
1059
uint16_t or = (req[offset + 5] << 8) + req[offset + 6];
1060
1061
- data = (data & and) | (or &(~and));
+ data = (data & and) | (or &(~and) );
1062
mb_mapping->tab_registers[mapping_address] = data;
1063
memcpy(rsp, req, req_length);
1064
rsp_length = req_length;
0 commit comments