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) {