From 80dc293c17305a3f933b6596d7dcdfeb64791ebe Mon Sep 17 00:00:00 2001 From: peterhinch Date: Tue, 23 Jan 2024 16:54:07 +0000 Subject: [PATCH] eeprom SPI: Fix ready timeout. --- eeprom/spi/eeprom_spi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeprom/spi/eeprom_spi.py b/eeprom/spi/eeprom_spi.py index 88f110e..c7719df 100644 --- a/eeprom/spi/eeprom_spi.py +++ b/eeprom/spi/eeprom_spi.py @@ -98,7 +98,7 @@ class EEPROM(EepromDevice): if not mvp[1]: # We never set BP0 or BP1 so ready state is 0. break time.sleep_ms(1) - if time.ticks_diff(ticks_ms(), tstart) > 1000: + if time.ticks_diff(time.ticks_ms(), tstart) > 1000: raise OSError("Device ready timeout.") # Given an address, set current chip select and address buffer.