Skip to content

Commit

Permalink
Fixed stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
retrodaredevil committed Feb 20, 2021
1 parent 899d6a4 commit 7892b71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7892b71

Please sign in to comment.