aboutsummaryrefslogtreecommitdiff
path: root/src/peripherals/eeprom.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/peripherals/eeprom.ts')
-rw-r--r--src/peripherals/eeprom.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peripherals/eeprom.ts b/src/peripherals/eeprom.ts
index 97ca178..0301701 100644
--- a/src/peripherals/eeprom.ts
+++ b/src/peripherals/eeprom.ts
@@ -101,7 +101,7 @@ export class AVREEPROM {
return true;
}
// Check for write-in-progress
- if (this.writeCompleteCycles) {
+ if (this.cpu.cycles < this.writeCompleteCycles) {
return true;
}