Add the ttyAP subsystem to serialport list

This commit is contained in:
Francis Gulotta 2017-07-15 12:27:10 -04:00
parent ee7315f59c
commit 2361fa599a

View file

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