summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fpm.c11
-rw-r--r--fpm.h2
2 files changed, 13 insertions, 0 deletions
diff --git a/fpm.c b/fpm.c
index 4f058ef..47fcd06 100644
--- a/fpm.c
+++ b/fpm.c
@@ -240,3 +240,14 @@ uint8_t fpm_match(void)
return buf[0] == OK;
}
+
+uint8_t fpm_delete_all(void)
+{
+ uint16_t n;
+ uint8_t buf[MAXPDLEN];
+
+ buf[0] = 0x0D;
+ send(0x01, buf, 1);
+ recv(buf, &n);
+ return buf[0] == OK;
+}
diff --git a/fpm.h b/fpm.h
index b3fcd91..f165958 100644
--- a/fpm.h
+++ b/fpm.h
@@ -25,4 +25,6 @@ uint8_t fpm_enroll(void);
uint8_t fpm_match(void);
+uint8_t fpm_delete_all(void);
+
#endif /* FPM_H */