From 48175d376f52e76c5672f0eb20ce23900ab03618 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 23 Feb 2017 17:10:59 +0100 Subject: [PATCH] [fix] --- lib/mfrc522/source/loop.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mfrc522/source/loop.php b/lib/mfrc522/source/loop.php index 8f7dae1..f80eb57 100755 --- a/lib/mfrc522/source/loop.php +++ b/lib/mfrc522/source/loop.php @@ -165,6 +165,7 @@ /* (4) Check if the state allows the action to be performed */ for( $c = 0 ; $c < strlen($state) && $c < strlen($action['prev']) ; $c++ ){ + // // {1} 'X' = any state -> so ignore // if( $action['prev'][$c] == 'X' ) continue; @@ -194,13 +195,12 @@ $action = $grantedFor[$toPerform]; + var_dump($action); /* [5] Process the action on the STATE =========================================================*/ /* (1) Update the state with the found action */ for( $c = 0 ; $c < strlen($state) && $c < strlen($action['next']) ; $c++ ){ - slog($c.' - '.$action['next'][$c], 'mfrc522:loop'); - // {1} If 'x' -> let the current state // if( $action['next'][$c] == 'X' ) continue;