reffactor function

This commit is contained in:
Fanani M. Ihsan 2016-05-27 09:59:52 +07:00
parent aca1e14b4e
commit f6d9cc2887

View File

@ -237,7 +237,7 @@ class ZK(object):
else:
return cmd_response
def __get_size_user(self):
def __get_data_size(self):
"""Checks a returned packet to see if it returned CMD_PREPARE_DATA,
indicating that data packets are to be sent
@ -256,7 +256,7 @@ class ZK(object):
command = const.CMD_USERTEMP_RRQ
cmd_response = self.__send_command(command=command, response_size=1024)
if cmd_response:
bytes = self.__get_size_user()
bytes = self.__get_data_size()
userdata = []
if bytes:
while bytes > 0: