Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library expansion and compatibility with other ZhianTec fp sensors #11

wants to merge 18 commits into
base: master
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

some more fixes

  • Loading branch information
stitchesnburns committed Feb 22, 2019
commit 9c4034d0accedadd771fd75a3dd9f2720156fa57
@@ -189,7 +189,6 @@ def delete_model(self, location):
def load_model(self, location, charbuf=1):
"""Requests the sensor to load a model from the given memory location
to the given charbuf. Returns the packet error code or success"""
self._send_packet([_LOAD, charbuf, location >> 8, location & 0xFF])
return self._get_packet(12)[0]

@@ -212,7 +211,8 @@ def get_fpdata(self, buffer='char', charbuf=1):
return res

def send_fpdata(self, data, buffer='char', charbuf=1):
"""Requests the sensor to receive data, either a fingerprint image or
a character/template data. Data is the payload only."""
if charbuf != 1 or charbuf != 2:
# raise error or use default value?
charbuf = 2
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.