Skip to content

Commit e8adaf8

Browse files
author
BiffoBear
committed
Added the start variable.
1 parent ef77237 commit e8adaf8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_rfm69.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ def operation_mode(self, val):
474474
op_mode |= val << 2
475475
self._write_u8(_REG_OP_MODE, op_mode)
476476
# Wait for mode to change by polling interrupt bit.
477+
start = time.monotonic()
477478
while not self.mode_ready:
478479
if (time.monotonic() - start) >= 1:
479480
raise RuntimeError('Operation mode failed to set.')

0 commit comments

Comments
 (0)