Parcourir la source

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

Zachary Kotlarek il y a 10 ans
Parent
commit
713b6acc2e
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  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'};
 	}