mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 16:59:15 +02:00
3LAS revert + hotfixes
This commit is contained in:
+3
-2
@@ -74,8 +74,9 @@ function connectToSerial() {
|
||||
serialport.write('x\n');
|
||||
|
||||
serialport.on('data', (data) => {
|
||||
if (data && data.startsWith('OK')) {
|
||||
okReceived = true;
|
||||
console.log(data);
|
||||
const receivedData = data.toString();
|
||||
if (receivedData.startsWith('OK')) {
|
||||
|
||||
// Send the remaining commands
|
||||
serialport.write('Q0\n');
|
||||
|
||||
Reference in New Issue
Block a user