From fc81076621adc1e23546611178ed2726c8785319 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 23 Feb 2017 16:37:03 +0100 Subject: [PATCH] debug --- lib/mfrc522/source/loop.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/mfrc522/source/loop.php b/lib/mfrc522/source/loop.php index 9863f29..5956fb0 100755 --- a/lib/mfrc522/source/loop.php +++ b/lib/mfrc522/source/loop.php @@ -31,11 +31,13 @@ /* (2) Read first line */ $f_gstate->seek(0); - $state = $f_gstate->fgets(); + $state = $f_gstate->current(); $state = preg_replace('@^\s+@', '', $state); $state = preg_replace('@\s+$@', '', $state); + var_dump($state); + /* (3) Check data */ if( strlen($state) < 1 ) return false;