[fix] added global state fetch

This commit is contained in:
xdrm-brackets 2017-02-23 16:31:54 +01:00
parent 99ee28d51b
commit ae088ad453
1 changed files with 2 additions and 2 deletions

View File

@ -388,10 +388,10 @@
// {2} If not updated -> error // // {2} If not updated -> error //
if( !$updateds ) 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 // // {3} If updated -> success //
else else
slog("Chips updated to ".implode('',$state)."'", 'mfrc522:loop'); slog("Chips updated to ".implode('',get_gstate())."'", 'mfrc522:loop');
/* (3) If not performed -> log error */ /* (3) If not performed -> log error */
}else }else