From 44821dc5be0db1162b244adb65556e61e8c34eb6 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 23 Feb 2017 16:58:29 +0100 Subject: [PATCH] debug --- lib/global-state/source/update.php | 1 - lib/mfrc522/source/loop.php | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/global-state/source/update.php b/lib/global-state/source/update.php index da3125f..13688e7 100755 --- a/lib/global-state/source/update.php +++ b/lib/global-state/source/update.php @@ -28,7 +28,6 @@ /* (4) Extract */ $GLOBAL_STATE = $f_gstate; - slog("Starting with state '{$GLOBAL_STATE}'", 'global-state:update'); /* [2] Cache global state to chip states =========================================================*/ diff --git a/lib/mfrc522/source/loop.php b/lib/mfrc522/source/loop.php index 7f54a53..6553a8c 100755 --- a/lib/mfrc522/source/loop.php +++ b/lib/mfrc522/source/loop.php @@ -211,11 +211,13 @@ /* (2) Update the state file */ + var_dump('before : '.get_gstate()); $written = @file_put_contents(STATE_CONF, $state); /* (3) Manage error */ if( $written === false ) slog('cannot update STATE file', 'mfrc522:loop'); + var_dump('after : '.get_gstate());