You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 22:13:53 +01:00
hotfix try for OK line #2
This commit is contained in:
@@ -74,7 +74,7 @@ function connectToSerial() {
|
||||
serialport.write('x\n');
|
||||
|
||||
serialport.on('data', (data) => {
|
||||
if (data.startsWith('OK')) {
|
||||
if (data && data.startsWith('OK')) {
|
||||
okReceived = true;
|
||||
|
||||
// Send the remaining commands
|
||||
|
||||
Reference in New Issue
Block a user