Ver código fonte

Strong match

Zachary Kotlarek 12 anos atrás
pai
commit
ca655c24d5
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      dmx/rope.pl

+ 1 - 1
dmx/rope.pl

@@ -160,7 +160,7 @@ while (1) {
 			}
 		}
 	}
-	if ($newState eq 'OFF' && $exists{'STAIRS'} =~ /MOTION/) {
+	if ($newState eq 'OFF' && $exists{'STAIRS'} =~ /^State: MOTION\b/) {
 		$newState = 'PREMOTION';
 	}
 	$state = $newState;