Skip to content

Commit

Permalink
Add youtube video + screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
pimvanpelt committed Dec 23, 2019
1 parent 14bac0a commit 250bead
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -2,3 +2,5 @@

A demonstration application for the [Fingerprint](https://github.com/mongoose-os-libs/fingerprint) library.
Due to the use of a hardware UART, this currently works only for ESP32.

[![Fingerprint Demo](img/demo.png)](https://www.youtube.com/watch?v=G_B4LRFz1vM)
Binary file added img/demo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/main.c
Expand Up @@ -67,10 +67,10 @@ static void enroll_cb(struct mgos_fingerprint *finger) {
case STATE_FIRST_IMAGE:
if (MGOS_FINGERPRINT_OK !=
(p = mgos_fingerprint_image_genchar(finger, 1))) {
LOG(LL_ERROR, ("Could not generate fingerprint in slot 1"));
LOG(LL_ERROR, ("Could not generate first image"));
goto err;
}
LOG(LL_INFO, ("Stored fingerprint in slot 1: Remove finger"));
LOG(LL_INFO, ("Stored first fingerprint: Remove finger"));

while (p != MGOS_FINGERPRINT_NOFINGER) {
p = mgos_fingerprint_image_get(finger);
Expand All @@ -87,10 +87,10 @@ static void enroll_cb(struct mgos_fingerprint *finger) {
int16_t fid;

if (MGOS_FINGERPRINT_OK != mgos_fingerprint_image_genchar(finger, 2)) {
LOG(LL_ERROR, ("Could not generate fingerprint in slot 2"));
LOG(LL_ERROR, ("Could not generate second fingerprint"));
goto err;
}
LOG(LL_INFO, ("Stored fingerprint in slot 2"));
LOG(LL_INFO, ("Stored second fingerprint"));

if (MGOS_FINGERPRINT_OK != mgos_fingerprint_model_combine(finger)) {
LOG(LL_ERROR, ("Could not combine fingerprints into a model"));
Expand Down

0 comments on commit 250bead

Please sign in to comment.