From 648d8b9e3bbb21e9f150a77854c61f28b4773362 Mon Sep 17 00:00:00 2001 From: Stephan Ruloff Date: Tue, 29 Mar 2022 18:30:23 +0200 Subject: [PATCH] Removed `must_relock` part for the "SST25VF040B" as requested --- src/spiFlash.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/spiFlash.cpp b/src/spiFlash.cpp index f672273..7d14f6b 100644 --- a/src/spiFlash.cpp +++ b/src/spiFlash.cpp @@ -311,10 +311,6 @@ int SPIFlash::erase_and_prog(int base_addr, uint8_t *data, int len) if ((status & 0x1c) != 0) must_relock = true; } - if ((_jedec_id >> 8) == 0xbf258d) { - if ((status & 0x1c) != 0) - must_relock = true; - } /* if it's needs to unlock */ if (must_relock) {