From 5cc40775cba1a17fb45de85aa65ae77c3fec1885 Mon Sep 17 00:00:00 2001 From: danielboe Date: Wed, 27 Nov 2024 17:14:34 +0100 Subject: [PATCH] fix(control) add wait flag for reboot --- app/hwcontrol.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/hwcontrol.js b/app/hwcontrol.js index 723e94d..e0c51c1 100644 --- a/app/hwcontrol.js +++ b/app/hwcontrol.js @@ -7,6 +7,8 @@ const PJLink = require("pjlink"); const { exec, spawn } = require("child_process"); var DEBUG = process.env.DEBUG != "true" ? false : true; +var WAITREBOOT = process.env.WAITREBOOT != "true" ? false : true; + var BEAMER_IP = process.env.BEAMER_IP || "0.0.0.0"; var beamerArray = []; @@ -387,6 +389,10 @@ module.exports = { await execAwait("ddcutil setvcp --display " + index + " D6 " + "01"); await delay(1000); } + //if set wair for beamer init + if (WAITREBOOT) { + await delay(60000); + } await this.setBalenaRestart(); resolve("all devices awake");