Skip to content

Commit 80dc293

Browse files
committed
eeprom SPI: Fix ready timeout.
1 parent 1fa3fea commit 80dc293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eeprom/spi/eeprom_spi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def _wait_rdy(self): # After a write, wait for device to become ready
9898
if not mvp[1]: # We never set BP0 or BP1 so ready state is 0.
9999
break
100100
time.sleep_ms(1)
101-
if time.ticks_diff(ticks_ms(), tstart) > 1000:
101+
if time.ticks_diff(time.ticks_ms(), tstart) > 1000:
102102
raise OSError("Device ready timeout.")
103103

104104
# Given an address, set current chip select and address buffer.

0 commit comments

Comments
 (0)