1 parent 36bd107 commit 65888e2Copy full SHA for 65888e2
1 file changed
stmhal/storage.h
@@ -27,7 +27,7 @@
27
#define FLASH_BLOCK_SIZE (512)
28
29
#define STORAGE_SYSTICK_MASK (0x1ff) // 512ms
30
-#define STORAGE_IDLE_TICK(tick) (((tick) & STORAGE_SYSTICK_MASK) == 0)
+#define STORAGE_IDLE_TICK(tick) (((tick) & STORAGE_SYSTICK_MASK) == 2)
31
32
void storage_init(void);
33
uint32_t storage_get_block_size(void);
0 commit comments