write everything at once

This commit is contained in:
FH0 2024-05-30 17:44:54 +08:00 committed by GitHub
parent 54ced10eaf
commit 7354552206
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);