From 56a68fd9afb6d5f04eb43b0d0e7d50fb60f2b59f Mon Sep 17 00:00:00 2001 From: travis-farmer Date: Sun, 24 Nov 2024 05:23:43 -0500 Subject: [PATCH] possible flaboo fix --- IO_Modbus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IO_Modbus.h b/IO_Modbus.h index be5b65b..2e929f2 100644 --- a/IO_Modbus.h +++ b/IO_Modbus.h @@ -238,7 +238,7 @@ public: void _write(VPIN vpin, int value) { // Update current state for this device, in preparation the bus transmission - uint16_t pin = vpin - _firstVpin - numCoils; + uint16_t pin = vpin - _firstVpin - numDiscreteInputs; if (pin < numCoils) { if (value) coils[pin] = value;