Skip to content

Commit a35a36b

Browse files
keep _USE_PULSEIO false for NotImplementedError
Jetson Boards get a NotImplentedError rather than an ImportError when trying to import pulseio. By allowing NotImplementedError just like ImportError, this library works fine with the Jetson Nano.
1 parent cc696b8 commit a35a36b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_hcsr04.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
from pulseio import PulseIn
4545

4646
_USE_PULSEIO = True
47-
except ImportError:
47+
except (ImportError, NotImplementedError):
4848
pass # This is OK, we'll try to bitbang it!
4949

5050
__version__ = "0.0.0+auto.0"

0 commit comments

Comments
 (0)