Fixed receiver thread cancellation

Fixed blocking endlessly on port close
This commit is contained in:
2024-07-14 10:57:12 +02:00
parent 1101b71faf
commit cb7f331b6a
2 changed files with 15 additions and 8 deletions

View File

@ -20,5 +20,7 @@ internal class Program
serialPort.Write("START\r\n");
Console.ReadKey();
serialPort.Close();
}
}