don't read empty fingers
This commit is contained in:
parent
1233ec86f3
commit
c2533da942
@ -972,6 +972,9 @@ class ZK(object):
|
|||||||
|
|
||||||
def get_templates(self):
|
def get_templates(self):
|
||||||
""" return array of all fingers """
|
""" return array of all fingers """
|
||||||
|
self.read_sizes() # last update
|
||||||
|
if self.fingers == 0: #lazy
|
||||||
|
return []
|
||||||
templates = []
|
templates = []
|
||||||
templatedata, size = self.read_with_buffer(const.CMD_DB_RRQ, const.FCT_FINGERTMP)
|
templatedata, size = self.read_with_buffer(const.CMD_DB_RRQ, const.FCT_FINGERTMP)
|
||||||
if size < 4:
|
if size < 4:
|
||||||
|
Loading…
Reference in New Issue
Block a user