Skip to content

Commit

Permalink
Fix: Display.animate control Pir animate
Browse files Browse the repository at this point in the history
  • Loading branch information
bugsounet committed Jan 5, 2025
1 parent 93a82d4 commit 170b13c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = NodeHelper.create({
log("[CALLBACK] Pir:", noti, params || "");
if (noti === "PIR_DETECTED") {
this.screen.wakeup();
this.sendSocketNotification("PIR_DETECTED-ANIMATE");
if (this.config.Display.animate) this.sendSocketNotification("PIR_DETECTED-ANIMATE");
} else {
this.sendSocketNotification(noti, params);
}
Expand Down Expand Up @@ -102,7 +102,7 @@ module.exports = NodeHelper.create({
debug: this.config.debug,
gpio: this.config.Pir.gpio,
mode: this.config.Pir.mode,
chip: this.config.Pir.chip || "auto"
chip: this.config.Pir.chip
};

let screenConfig = {
Expand Down

0 comments on commit 170b13c

Please sign in to comment.