Skip to content

Commit

Permalink
fix(control) add wait flag for reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
smarthomeagentur committed Nov 27, 2024
1 parent eae31b8 commit 5cc4077
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/hwcontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 5cc4077

Please sign in to comment.