From e8dd0ea46f904c5c30dcafa64afbe198033b8da8 Mon Sep 17 00:00:00 2001 From: "Fanani M. Ihsan" Date: Thu, 27 Dec 2018 14:54:10 +0700 Subject: [PATCH] [FIX] fixes clear_data function --- zk/base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zk/base.py b/zk/base.py index cec9be0..188ca71 100644 --- a/zk/base.py +++ b/zk/base.py @@ -1273,13 +1273,12 @@ class ZK(object): if not was_enabled: self.disable_device() - def clear_data(self, clear_type=5): + def clear_data(self): """ clear all data (include: user, attendance report, finger database ) - 2 = FCT_FINGERTMP """ command = const.CMD_CLEAR_DATA - command_string = pack("B", clear_type) + command_string = '' cmd_response = self.__send_command(command, command_string) if cmd_response.get('status'): self.is_connect = False