From 7892b71b2d8fc411d61be05a8c7106e3b7d09992 Mon Sep 17 00:00:00 2001 From: Joshua Shannon Date: Sat, 20 Feb 2021 03:05:53 -0600 Subject: [PATCH] Fixed stupid bug --- .../retrodaredevil/io/modbus/handling/ReadInputRegisters.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/me/retrodaredevil/io/modbus/handling/ReadInputRegisters.java b/core/src/main/java/me/retrodaredevil/io/modbus/handling/ReadInputRegisters.java index d83daff..3016416 100644 --- a/core/src/main/java/me/retrodaredevil/io/modbus/handling/ReadInputRegisters.java +++ b/core/src/main/java/me/retrodaredevil/io/modbus/handling/ReadInputRegisters.java @@ -5,7 +5,7 @@ public class ReadInputRegisters extends BaseReadRegisters { public ReadInputRegisters(int startingDataAddress, int numberOfRegisters) { - super(startingDataAddress, FunctionCode.READ_HOLDING_REGISTERS, numberOfRegisters); + super(startingDataAddress, FunctionCode.READ_INPUT_REGISTERS, numberOfRegisters); } public static ReadInputRegisters parseFromRequestData(int[] data) throws MessageParseException { if (data.length != 4) {