From 332e6e8f8988ab60609b13e423e3c3996d52e5c0 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Wed, 8 May 2024 16:07:36 -0400 Subject: [PATCH] work on laptop --- src/main.cpp | 3 --- test/test_messages.js | 14 +++++++------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 3c5b18c..a5f5f20 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -66,9 +66,6 @@ void actionDisplay () { completed = false; timing = true; startTime = steady_clock::now(); - while (!completed) { - // - } } // multi channel case } diff --git a/test/test_messages.js b/test/test_messages.js index 028be34..4339a33 100644 --- a/test/test_messages.js +++ b/test/test_messages.js @@ -31,15 +31,11 @@ client.connect(serverPort, serverAddress, async () => { await delay(2000); data.action = 2; delete data.position + data.exposure = [ 4000 ]; console.log('SENDING'); console.log(data); client.write(JSON.stringify(data)); - await delay(2000); - data.action = 3; - console.log('SENDING'); - console.log(data); - client.write(JSON.stringify(data)); - await delay(2000); + await delay(6000); data.action = 1; data.position = { x: 50, y : 50, w : 320, h : 320 }; console.log('SENDING'); @@ -48,7 +44,11 @@ client.connect(serverPort, serverAddress, async () => { await delay(1000); data.action = 2; delete data.position; - data.exposure = [ 4000 ]; + console.log('SENDING'); + console.log(data); + client.write(JSON.stringify(data)); + await delay(2000); + data.action = 3; console.log('SENDING'); console.log(data); client.write(JSON.stringify(data));