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;