summaryrefslogtreecommitdiffstats
path: root/fpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'fpm.c')
-rw-r--r--fpm.c11
1 files changed, 11 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;
+}