From 73545522064b37e5ef473555a3437b10a9f11570 Mon Sep 17 00:00:00 2001 From: FH0 <32861476+FH0@users.noreply.github.com> Date: Thu, 30 May 2024 17:44:54 +0800 Subject: [PATCH] write everything at once --- SimplySerial/SimplySerial.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SimplySerial/SimplySerial.cs b/SimplySerial/SimplySerial.cs index 51ebc45..abbbf11 100644 --- a/SimplySerial/SimplySerial.cs +++ b/SimplySerial/SimplySerial.cs @@ -297,7 +297,7 @@ namespace SimplySerial try { // process keypresses for transmission through the serial port - if (Console.KeyAvailable) + while (Console.KeyAvailable) { // determine what key is pressed (including modifiers) keyInfo = Console.ReadKey(intercept: true);