don't read empty fingers

This commit is contained in:
Arturo Hernandez 2018-09-13 10:30:34 -04:00
parent 1233ec86f3
commit c2533da942

View File

@ -972,6 +972,9 @@ class ZK(object):
def get_templates(self):
""" return array of all fingers """
self.read_sizes() # last update
if self.fingers == 0: #lazy
return []
templates = []
templatedata, size = self.read_with_buffer(const.CMD_DB_RRQ, const.FCT_FINGERTMP)
if size < 4: