Skip to content

Commit 5718b26

Browse files
author
BiffoBear
committed
Changed RuntimeError to TimeoutError.
1 parent 26c8670 commit 5718b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_rfm69.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def operation_mode(self, val):
477477
start = time.monotonic()
478478
while not self.mode_ready:
479479
if (time.monotonic() - start) >= 1:
480-
raise RuntimeError("Operation mode failed to set.")
480+
raise TimeoutError("Operation Mode failed to set.")
481481

482482
@property
483483
def sync_word(self):

0 commit comments

Comments
 (0)