[FIX] fixes clear_data function

This commit is contained in:
Fanani M. Ihsan 2018-12-27 14:54:10 +07:00
parent 394d44c8a0
commit e8dd0ea46f

View File

@ -1273,13 +1273,12 @@ class ZK(object):
if not was_enabled: if not was_enabled:
self.disable_device() self.disable_device()
def clear_data(self, clear_type=5): def clear_data(self):
""" """
clear all data (include: user, attendance report, finger database ) clear all data (include: user, attendance report, finger database )
2 = FCT_FINGERTMP
""" """
command = const.CMD_CLEAR_DATA command = const.CMD_CLEAR_DATA
command_string = pack("B", clear_type) command_string = ''
cmd_response = self.__send_command(command, command_string) cmd_response = self.__send_command(command, command_string)
if cmd_response.get('status'): if cmd_response.get('status'):
self.is_connect = False self.is_connect = False