Skip to content

Commit 465d2a7

Browse files
authored
Merge pull request #1 from adafruit/fix-no-monotonic-ns
fix importing on boards where time.monotonic_ns raises NotImplementedError
2 parents 963dac8 + 3fa7f7e commit 465d2a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ticks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def ticks_ms():
7474
until a holiday."""
7575
return (_monotonic_ns() // 1_000_000) & _TICKS_MAX
7676

77-
except (ImportError, NameError):
77+
except (ImportError, NameError, NotImplementedError):
7878
from time import monotonic as _monotonic
7979

8080
def ticks_ms():

0 commit comments

Comments
 (0)