1
0
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:
NoobishSVK
2024-07-15 22:40:39 +02:00
parent 85bf3657ac
commit 1f82a2bde5

View File

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