3LAS revert + hotfixes

This commit is contained in:
NoobishSVK
2024-07-15 22:57:15 +02:00
parent a56d34bbaa
commit 8f2dea584a
3 changed files with 244 additions and 87 deletions
+3 -2
View File
@@ -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');