29*0x0 Flash now only starts the page write timer after the page address has been loaded, fixes accidental writes addresses that are not supposed to be written to.

This commit is contained in:
OBattler
2020-10-20 16:23:04 +02:00
parent 97b01bf39c
commit c2329eefda

View File

@@ -127,7 +127,6 @@ sst_new_command(sst_t *dev, uint32_t addr, uint8_t val)
if (!dev->is_39) {
memset(dev->page_buffer, 0xff, 128);
dev->page_bytes = 0;
timer_on_auto(&dev->page_write_timer, 210.0);
}
dev->command_state = 6;
break;
@@ -179,7 +178,7 @@ sst_buf_write(sst_t *dev, uint32_t addr, uint8_t val)
if (dev->page_bytes >= 128)
sst_page_write(dev);
else
timer_set_delay_u64(&dev->page_write_timer, 210 * TIMER_USEC);
timer_on_auto(&dev->page_write_timer, 210.0);
}