Просмотр исходного кода

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

Zachary Kotlarek 10 лет назад
Родитель
Сommit
07438ffd58
1 измененных файлов с 2 добавлено и 0 удалено
  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';
     }