From 36fa15c00921d1414a907ad8b2ec2154f9190e76 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 20 Oct 2020 19:44:24 +0200 Subject: [PATCH] More 29*0x0 fixes. --- src/mem/sst_flash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mem/sst_flash.c b/src/mem/sst_flash.c index 37d514a3b..ccbd43943 100644 --- a/src/mem/sst_flash.c +++ b/src/mem/sst_flash.c @@ -161,6 +161,7 @@ sst_page_write(void *priv) dev->dirty = 1; dev->page_bytes = 0; dev->command_state = 0; + timer_disable(&dev->page_write_timer); } @@ -183,7 +184,6 @@ sst_buf_write(sst_t *dev, uint32_t addr, uint8_t val) { dev->page_buffer[addr & 0x0000007f] = val; dev->page_dirty[addr & 0x0000007f] = 1; - timer_disable(&dev->page_write_timer); dev->page_bytes++; dev->last_addr = addr; if (dev->page_bytes >= 128) { @@ -248,7 +248,7 @@ sst_write(uint32_t addr, uint8_t val, void *p) } break; case 7: - if (!dev->is_39 && ((addr & dev->page_mask) == dev->page_base)) + if (!dev->is_39) sst_buf_write(dev, addr, val); break; }