Skip to content

Commit 7f54963

Browse files
committed
factorysetup: unlock SPI mem before writing to it
1 parent 27d054a commit 7f54963

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/factorysetup.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ static ble_error_code_t _setup_ble(void)
522522
return BLE_OK;
523523
}
524524

525+
spi_mem_protected_area_unlock();
526+
525527
// Erase chip.
526528
screen_print_debug("Erasing chip", 0);
527529
int32_t erased_sectors = spi_mem_smart_erase();

0 commit comments

Comments
 (0)