From 85bf3657ac2424ae48027d31b21130cfae66ce30 Mon Sep 17 00:00:00 2001 From: NoobishSVK Date: Mon, 15 Jul 2024 22:37:28 +0200 Subject: [PATCH] hotfix for data OK line --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index 3997c61..2676a58 100644 --- a/server/index.js +++ b/server/index.js @@ -74,7 +74,7 @@ function connectToSerial() { serialport.write('x\n'); serialport.on('data', (data) => { - if (receivedData.startsWith('OK')) { + if (data.startsWith('OK')) { okReceived = true; // Send the remaining commands