From f1217bf92f65aa27a43612b79c57f8fe5bdee67d Mon Sep 17 00:00:00 2001 From: travis-farmer Date: Sat, 30 Nov 2024 14:20:46 -0500 Subject: [PATCH] IO_Modbus: slight change --- IO_Modbus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IO_Modbus.h b/IO_Modbus.h index 8590165..5b08f5c 100644 --- a/IO_Modbus.h +++ b/IO_Modbus.h @@ -228,7 +228,7 @@ public: return (int) inputRegisters[pin]; } - void _writeAnalogue(VPIN vpin, int value, uint8_t param1=0, uint16_t param2=0) override { + void _writeAnalogue(VPIN vpin, int value) { uint16_t pin = vpin - _firstVpin - _numDiscreteInputs - _numCoils - _numInputRegisters; holdingRegisters[pin] = (uint16_t*) value; } @@ -317,7 +317,7 @@ private: ModbusRTUMasterError _writeSingleValue(uint8_t id, uint8_t functionCode, uint16_t address, uint16_t value); int _waitCounter = 0; int _waitCounterB = 0; - + void _resetWaiting() { _rtuComm._waiting_for_read = false; }