From e319f6f7f487d4ef27bf89c26e04646aa3b9b4db Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Thu, 16 Jul 2020 20:39:27 +0300 Subject: fix(eeprom): EEPROM write fails after first attempt close #54 --- src/peripherals/eeprom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/peripherals/eeprom.ts') 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; } -- cgit v1.2.3