Explorar el Código

Keep the projector on while GAMES is active (and motion exists)

Zachary Kotlarek hace 10 años
padre
commit
713b6acc2e
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      dmx/projectorPower.pl

+ 6 - 1
dmx/projectorPower.pl

@@ -125,8 +125,13 @@ while (1) {
 	if ($exists{'PLAYING'} && $lastUser < $now) {
 		$lastUser = $now;
 	}
+
+	# Motion counts as activity when GAME is active
+	if ($exists{'GAME'} && $mtime{'MOTION'} > $lastUser) {
+		$lastUser = $mtime{'MOTION'};
+	}
 	
-	# Motion counts as activity when Plex is not foreground
+	# Motion counts as activity when PLEX is not active
 	if (!$exists{'PLEX'} && $mtime{'MOTION'} > $lastUser) {
 		$lastUser = $mtime{'MOTION'};
 	}