Skip to content

Commit

Permalink
fix: correct input parsing routine to use bitshift
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-welker committed May 1, 2024
1 parent 5b66220 commit 10a925a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rs232ParsingUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static string ParseInputResponse(this byte[] response)
Debug.Console(DebugLevels.DebugLevel, "ParseInputResponse response: {0}", response.ToReadableString());

//add together the input type byte & the input number byte
var inputNumber = response[3] + response[4];
var inputNumber = response[3] << 8 | response[4];

string input;

Expand Down

0 comments on commit 10a925a

Please sign in to comment.