From 0c298a1c2d0ab40760bf38b27fec43d8b8f3afb5 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Mon, 20 Feb 2017 19:51:03 -0500 Subject: Move dangerous auto_erase functionality to where it's actually used. --- stm-keystore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stm-keystore.c') diff --git a/stm-keystore.c b/stm-keystore.c index 633d554..86fad91 100644 --- a/stm-keystore.c +++ b/stm-keystore.c @@ -52,7 +52,7 @@ int keystore_read_data(uint32_t offset, uint8_t *buf, const uint32_t len) int keystore_write_data(uint32_t offset, const uint8_t *buf, const uint32_t len) { - return n25q128_write_data(&keystore_ctx, offset, buf, len, 0); + return n25q128_write_data(&keystore_ctx, offset, buf, len); } static int keystore_erase_something(uint32_t start, uint32_t stop, uint32_t limit, -- cgit v1.2.3