Update SerialPort.Linux.cs (#2009)
authorJohonis <jonas_kuntze@web.de>
Tue, 28 Jan 2020 18:28:04 +0000 (19:28 +0100)
committerStephen Toub <stoub@microsoft.com>
Tue, 28 Jan 2020 18:28:04 +0000 (13:28 -0500)
commit8388a1a2a8ade0974d340123341b5c0213b38c3b
tree667de33489fd8ff1ee2c8d5f3da932ec00a6ebf0
parent857fd749fbbab81c3291d4132ff50a7340571cd4
Update SerialPort.Linux.cs (#2009)

* Update SerialPort.Linux.cs

add ttyGSX devices to supported devices

* Apply suggestions from code review

Entry can only be ttyGSx. when its not ttySx

Co-Authored-By: Stephen Toub <stoub@microsoft.com>
* Update SerialPort.Linux.cs

ttyGSx creates a file in "/sys/class/tty/ttyGS0" named "dev" - use this file as an additional check

Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.IO.Ports/src/System/IO/Ports/SerialPort.Linux.cs