@@ -257,7 +257,7 @@ uint16_t ModbusIP::writeCoil(IPAddress ip, uint16_t offset, bool* value, uint16_
257257uint16_t ModbusIP::readCoil (IPAddress ip, uint16_t offset, bool * value, uint16_t numregs, cbTransaction cb, uint8_t unit) {
258258 if (numregs < 0x0001 || numregs > 0x007B ) return false ;
259259 readSlave (offset, numregs, FC_READ_COILS);
260- return send (ip, COIL (offset), cb, unit, value, cb );
260+ return send (ip, COIL (offset), cb, unit, value);
261261}
262262
263263uint16_t ModbusIP::writeHreg (IPAddress ip, uint16_t offset, uint16_t value, cbTransaction cb, uint8_t unit) {
@@ -274,19 +274,19 @@ uint16_t ModbusIP::writeHreg(IPAddress ip, uint16_t offset, uint16_t* value, uin
274274uint16_t ModbusIP::readHreg (IPAddress ip, uint16_t offset, uint16_t * value, uint16_t numregs, cbTransaction cb, uint8_t unit) {
275275 if (numregs < 0x0001 || numregs > 0x007B ) return false ;
276276 readSlave (offset, numregs, FC_READ_REGS);
277- return send (ip, HREG (offset), cb, unit, value, cb );
277+ return send (ip, HREG (offset), cb, unit, value);
278278}
279279
280280uint16_t ModbusIP::readIsts (IPAddress ip, uint16_t offset, bool * value, uint16_t numregs, cbTransaction cb, uint8_t unit) {
281281 if (numregs < 0x0001 || numregs > 0x007B ) return false ;
282282 readSlave (offset, numregs, FC_READ_INPUT_STAT);
283- return send (ip, ISTS (offset), cb, unit, value, cb );
283+ return send (ip, ISTS (offset), cb, unit, value);
284284}
285285
286286uint16_t ModbusIP::readIreg (IPAddress ip, uint16_t offset, uint16_t * value, uint16_t numregs, cbTransaction cb, uint8_t unit) {
287287 if (numregs < 0x0001 || numregs > 0x007B ) return false ;
288288 readSlave (offset, numregs, FC_READ_INPUT_REGS);
289- return send (ip, IREG (offset), cb, unit, value, cb );
289+ return send (ip, IREG (offset), cb, unit, value);
290290}
291291
292292uint16_t ModbusIP::pushCoil (IPAddress ip, uint16_t to, uint16_t from, uint16_t numregs, cbTransaction cb, uint8_t unit) {
0 commit comments