FIX: Receive and show proper value

This commit is contained in:
Robert Kossessa
2024-05-19 13:52:22 +02:00
parent ce8616e166
commit d773302317
3 changed files with 12 additions and 15 deletions

View File

@@ -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)
})