summaryrefslogtreecommitdiff
path: root/romdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'romdb.c')
-rw-r--r--romdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/romdb.c b/romdb.c
index ff4e65a..6dd70a7 100644
--- a/romdb.c
+++ b/romdb.c
@@ -143,6 +143,7 @@ void set_scl(eeprom_state *state, uint8_t val)
state->address++;
//TODO: page mask
state->address &= state->size-1;
+ state->latch = state->buffer[state->address];
break;
case I2C_WRITE_ACK:
state->state = I2C_WRITE;