Updated the test and tested with local ztk

This commit is contained in:
2021-03-26 21:43:24 +07:00
parent 392910d3df
commit f72e2e9952
7 changed files with 20 additions and 8 deletions

View File

@@ -1569,6 +1569,7 @@ class ZK(object):
record_size = total_size/self.records
if self.verbose: print ("record_size is ", record_size)
attendance_data = attendance_data[4:]
if record_size == 8:
while len(attendance_data) >= 8:
uid, status, timestamp, punch = unpack('HB4sB', attendance_data.ljust(8, b'\x00')[:8])