mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 16:59:15 +02:00
removed filter for devices
This commit is contained in:
@@ -380,7 +380,6 @@ app.get('/', (req, res) => {
|
|||||||
SerialPort.list()
|
SerialPort.list()
|
||||||
.then((deviceList) => {
|
.then((deviceList) => {
|
||||||
serialPorts = deviceList
|
serialPorts = deviceList
|
||||||
.filter(port => !port.path.startsWith('/dev/ttyS'))
|
|
||||||
.map(port => ({
|
.map(port => ({
|
||||||
path: port.path,
|
path: port.path,
|
||||||
friendlyName: port.friendlyName,
|
friendlyName: port.friendlyName,
|
||||||
|
|||||||
Reference in New Issue
Block a user