hotfix try for OK line #2

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