From ae088ad453fbb254c38d281fa681c2bc9135a59b Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 23 Feb 2017 16:31:54 +0100 Subject: [PATCH] [fix] added global state fetch --- 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 1dc44b7..5841cd8 100755 --- a/lib/mfrc522/source/loop.php +++ b/lib/mfrc522/source/loop.php @@ -388,10 +388,10 @@ // {2} If not updated -> error // if( !$updateds ) - slog("Cannot update chips to '".implode('',$state)."'", 'mfrc522:loop'); + slog("Cannot update chips to '".implode('',get_gstate())."'", 'mfrc522:loop'); // {3} If updated -> success // else - slog("Chips updated to ".implode('',$state)."'", 'mfrc522:loop'); + slog("Chips updated to ".implode('',get_gstate())."'", 'mfrc522:loop'); /* (3) If not performed -> log error */ }else