Parcourir la source

Enable comfort power when the motion detectors are disabled -- this should let people sleeping in the theater charge their phones

Zachary Kotlarek il y a 10 ans
Parent
commit
07438ffd58
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      dmx/comfort.pl

+ 2 - 0
dmx/comfort.pl

@@ -78,6 +78,8 @@ while (1) {
     $stateLast = $state;
     $stateLast = $state;
     if ($masterState ne 'OFF') {
     if ($masterState ne 'OFF') {
         $state = 'ON';
         $state = 'ON';
+    } elsif (exists($exists{'NO_MOTION'}) && $exists{'NO_MOTION'}) {
+        $state = 'ON';
     } else {
     } else {
         $state = 'OFF';
         $state = 'OFF';
     }
     }