diff options
author | Damien <damien.p.george@gmail.com> | 2013-12-17 18:36:19 +0000 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-12-17 18:36:19 +0000 |
commit | 8c3da5c2c538e05d66391dd036ccbc91214d4bc5 (patch) | |
tree | f5fb8f7d3bba31883cddc8917fe67703e1a45b29 /stm/storage.c | |
parent | 0f08267fa43b3abe9add4ab9ff5822a273fbeba1 (diff) | |
download | micropython-8c3da5c2c538e05d66391dd036ccbc91214d4bc5.tar.gz micropython-8c3da5c2c538e05d66391dd036ccbc91214d4bc5.zip |
stm: flush storage cache immediately; improve user interface.
Diffstat (limited to 'stm/storage.c')
-rw-r--r-- | stm/storage.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stm/storage.c b/stm/storage.c index ac0458d136..576c83a560 100644 --- a/stm/storage.c +++ b/stm/storage.c @@ -152,6 +152,7 @@ bool storage_write_block(const uint8_t *src, uint32_t block) { uint8_t *dest = cache_get_addr_for_write(flash_addr); memcpy(dest, src, BLOCK_SIZE); sys_tick_counter_last_write = sys_tick_counter; + cache_flush(); // XXX hack for now so that the cache is always flushed return true; } else { |