You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-27 14:33:52 +01:00
usb device filter for linux
This commit is contained in:
11
index.js
11
index.js
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user