FIX: Receive and show proper value
This commit is contained in:
@@ -144,7 +144,7 @@ app.whenReady().then(() => {
|
||||
mainWindow.webContents.send('nanoSerialApi:event', 'disconnected', deviceid, data)
|
||||
})
|
||||
nanoSerialApi.on('nanoSerialApi:update', (deviceid, data) => {
|
||||
if (!data.startsWith('{"idle"') && !data.startsWith('{"a"'))
|
||||
if (!data.startsWith('{"idle"') && !data.startsWith('{"p"'))
|
||||
console.log('Update event', deviceid, data)
|
||||
mainWindow.webContents.send('nanoSerialApi:event', 'update', deviceid, data)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user