@@ -250,7 +250,7 @@ uint16_t ModbusIP::writeCoil(IPAddress ip, uint16_t offset, bool* value, uint16_
250250uint16_t ModbusIP::readCoil (IPAddress ip, uint16_t offset, bool * value, uint16_t numregs, cbTransaction cb, uint8_t unit) {
251251 if (numregs < 0x0001 || numregs > 0x007B ) return false ;
252252 readSlave (offset, numregs, FC_READ_COILS);
253- return send (ip, COIL (offset), cb, unit, value, cb );
253+ return send (ip, COIL (offset), cb, unit, value);
254254}
255255
256256uint16_t ModbusIP::writeHreg (IPAddress ip, uint16_t offset, uint16_t value, cbTransaction cb, uint8_t unit) {
@@ -267,19 +267,19 @@ uint16_t ModbusIP::writeHreg(IPAddress ip, uint16_t offset, uint16_t* value, uin
267267uint16_t ModbusIP::readHreg (IPAddress ip, uint16_t offset, uint16_t * value, uint16_t numregs, cbTransaction cb, uint8_t unit) {
268268 if (numregs < 0x0001 || numregs > 0x007B ) return false ;
269269 readSlave (offset, numregs, FC_READ_REGS);
270- return send (ip, HREG (offset), cb, unit, value, cb );
270+ return send (ip, HREG (offset), cb, unit, value);
271271}
272272
273273uint16_t ModbusIP::readIsts (IPAddress ip, uint16_t offset, bool * value, uint16_t numregs, cbTransaction cb, uint8_t unit) {
274274 if (numregs < 0x0001 || numregs > 0x007B ) return false ;
275275 readSlave (offset, numregs, FC_READ_INPUT_STAT);
276- return send (ip, ISTS (offset), cb, unit, value, cb );
276+ return send (ip, ISTS (offset), cb, unit, value);
277277}
278278
279279uint16_t ModbusIP::readIreg (IPAddress ip, uint16_t offset, uint16_t * value, uint16_t numregs, cbTransaction cb, uint8_t unit) {
280280 if (numregs < 0x0001 || numregs > 0x007B ) return false ;
281281 readSlave (offset, numregs, FC_READ_INPUT_REGS);
282- return send (ip, IREG (offset), cb, unit, value, cb );
282+ return send (ip, IREG (offset), cb, unit, value);
283283}
284284
285285uint16_t ModbusIP::pushCoil (IPAddress ip, uint16_t to, uint16_t from, uint16_t numregs, cbTransaction cb, uint8_t unit) {
0 commit comments