Skip to content

Commit

Permalink
fix(server) try to wait for pjlink
Browse files Browse the repository at this point in the history
  • Loading branch information
smarthomeagentur committed Nov 26, 2024
1 parent d2a127f commit 4230e8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/hwcontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,11 @@ module.exports = {
for (let index = 0; index < beamerArray.length; index++) {
const element = beamerArray[index];
//await sendSerialProjector("7E3030303020310D", element); //power on optoma
var status = await pjlinkSet(element, "status");
for (let index = 0; index < 10; index++) {
var status = await pjlinkSet(element, "status");
if (status != false) break;
delay(2000);
}
console.log(status);
}
resolve(true);
Expand Down

0 comments on commit 4230e8f

Please sign in to comment.