From d4443a4f7f23985263c44c715b2ea46e019ff7ab Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Wed, 18 Oct 2017 18:31:37 +0200 Subject: [PATCH] unix/flash: start with 0xff --- embed/unix/flash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/embed/unix/flash.c b/embed/unix/flash.c index 3daa2e39b3..2790660d63 100644 --- a/embed/unix/flash.c +++ b/embed/unix/flash.c @@ -66,6 +66,7 @@ static void flash_read(void) int flash_init(void) { + memset(flash_buffer, 0xFF, sizeof(flash_buffer)); flash_read(); return 0; }