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

Disable automatic HDMI switch reboots

Zachary Kotlarek 10 лет назад
Родитель
Сommit
c70fee0e71
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      dmx/HDMIctrl.pl

+ 1 - 4
dmx/HDMIctrl.pl

@@ -120,7 +120,7 @@ while (1) {
 		}
 
 		# Reboot before the first update to GAME
-		if ($state eq 'GAME' && $lastBoot < $now - $BOOT_TIMEOUT) {
+		if (0 && $state eq 'GAME' && $lastBoot < $now - $BOOT_TIMEOUT) {
 			$hdmi->send('REBOOT')
 			  or die('Unable to write command to HDMI socket: ' . $state . ": ${!}\n");
 
@@ -134,9 +134,6 @@ while (1) {
 		$hdmi->send($state)
 		  or die('Unable to write command to HDMI socket: ' . $state . ": ${!}\n");
 
-		# Annouce the state change, after the fact
-		#DMX::say('Aitch-Dee-Em-I input' . lc($state));
-
 		# Update the push time
 		$pushLast = $now;