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));