This commit is contained in:
xdrm-brackets 2017-02-23 16:58:29 +01:00
parent 62fb097a9b
commit 44821dc5be
2 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,6 @@
/* (4) Extract */ /* (4) Extract */
$GLOBAL_STATE = $f_gstate; $GLOBAL_STATE = $f_gstate;
slog("Starting with state '{$GLOBAL_STATE}'", 'global-state:update');
/* [2] Cache global state to chip states /* [2] Cache global state to chip states
=========================================================*/ =========================================================*/

View File

@ -211,11 +211,13 @@
/* (2) Update the state file */ /* (2) Update the state file */
var_dump('before : '.get_gstate());
$written = @file_put_contents(STATE_CONF, $state); $written = @file_put_contents(STATE_CONF, $state);
/* (3) Manage error */ /* (3) Manage error */
if( $written === false ) if( $written === false )
slog('cannot update STATE file', 'mfrc522:loop'); slog('cannot update STATE file', 'mfrc522:loop');
var_dump('after : '.get_gstate());