usb device filter for linux

This commit is contained in:
NoobishSVK
2024-03-10 23:01:54 +01:00
parent a120355ee5
commit 2607998317
3 changed files with 9 additions and 6 deletions
+7 -4
View File
@@ -377,10 +377,13 @@ app.get('/', (req, res) => {
SerialPort.list()
.then((deviceList) => {
serialPorts = deviceList.map(port => ({
path: port.path,
friendlyName: port.friendlyName,
}));
serialPorts = deviceList
.filter(port => !port.path.startsWith('/dev/ttyS'))
.map(port => ({
path: port.path,
friendlyName: port.friendlyName,
}));
parseAudioDevice((result) => {
res.render('wizard', {