fix
This commit is contained in:
parent
c65db6afe2
commit
1cd9ff45f7
|
@ -156,7 +156,9 @@
|
|||
$saved = $saved < 0 ? 0 : $saved; // prevent negative
|
||||
|
||||
/* (4) Truncate the log file */
|
||||
$saved++; // because need to be excluded
|
||||
if( $saved > 0 )
|
||||
$saved++; // because need to be excluded
|
||||
|
||||
$truncated = syscall(SOURCE_DIR."/lib/file/truncate mfrc522 {$saved}");
|
||||
|
||||
/* (5) Manage error */
|
||||
|
|
Loading…
Reference in New Issue