feat: add ttyHS support for linux
Signed-off-by: Ancient Xu <ancientxu@gmail.com>
This commit is contained in:
@@ -313,8 +313,8 @@ func nativeGetPortsList() ([]string, error) {
|
||||
|
||||
portName := devFolder + "/" + f.Name()
|
||||
|
||||
// Check if serial port is real or is a placeholder serial port "ttySxx"
|
||||
if strings.HasPrefix(f.Name(), "ttyS") {
|
||||
// Check if serial port is real or is a placeholder serial port "ttySxx" or "ttyHSxx"
|
||||
if strings.HasPrefix(f.Name(), "ttyS") || strings.HasPrefix(f.Name(), "ttyHS") {
|
||||
port, err := nativeOpen(portName, &Mode{})
|
||||
if err != nil {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user