Skip to content

Commit

Permalink
pjlink state
Browse files Browse the repository at this point in the history
  • Loading branch information
smarthomeagentur committed Oct 17, 2024
1 parent 9f1b26e commit b4d99ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/hwcontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ function pjlinkSet(ip, command) {
}
if (command == "status") {
const powerstate = await new Promise((resolve, reject) => {
projector.getPowerState(function (state) {
projector.getPowerState(function (state, data) {
console.log("TEST");
console.log(state);
console.log(data);
resolve(state);
});
});
Expand Down Expand Up @@ -180,7 +182,7 @@ function pjlinkSet(ip, command) {

var stateArray = { powerstate, input, name, manufacturer, model, info };

console.log("[PJLINK] return state: " + stateArray);
console.log("[PJLINK] return state");
clearTimeout(timeout);
resolve(stateArray);
return;
Expand Down

0 comments on commit b4d99ed

Please sign in to comment.