From 10a925a7614e03dacd8a24b4ef8d70db77030720 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Wed, 1 May 2024 15:53:44 -0500 Subject: [PATCH] fix: correct input parsing routine to use bitshift --- src/Rs232ParsingUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rs232ParsingUtils.cs b/src/Rs232ParsingUtils.cs index a91c70c..5e3f106 100644 --- a/src/Rs232ParsingUtils.cs +++ b/src/Rs232ParsingUtils.cs @@ -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;