From 24f48e33bb3d6d3a985a6b287ff79b443250571b Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Mon, 19 Sep 2022 17:20:00 +0200 Subject: [PATCH] Reset nows flushes the memory storage. Signed-off-by: Pol Henarejos --- src/fido/cbor_reset.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fido/cbor_reset.c b/src/fido/cbor_reset.c index 54d1856..6225239 100644 --- a/src/fido/cbor_reset.c +++ b/src/fido/cbor_reset.c @@ -17,8 +17,14 @@ */ #include "ctap2_cbor.h" +#include "file.h" +#include "fido.h" + +extern void scan_all(); int cbor_reset() { + initialize_flash(true); + scan_all(); driver_exec_finished(1); return 0; }