Procházet zdrojové kódy

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

Zachary Kotlarek před 10 roky
rodič
revize
07438ffd58
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      dmx/comfort.pl

+ 2 - 0
dmx/comfort.pl

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