mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
Add the ttyAP subsystem to serialport list
This commit is contained in:
parent
ee7315f59c
commit
2361fa599a
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ function udevParser(output) {
|
|||
|
||||
function checkPathAndDevice(path) {
|
||||
// get only serial port names
|
||||
if (!(/(tty(S|ACM|USB|AMA|MFD)|rfcomm)/).test(path)) {
|
||||
if (!(/(tty(S|ACM|USB|AMA|MFD|AP)|rfcomm)/).test(path)) {
|
||||
return false;
|
||||
}
|
||||
return statAsync(path).then(stats => stats.isCharacterDevice());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue