Skip to content

Commit 39720fa

Browse files
Merge pull request #1 from ScottMonaghan/ScottMonaghan-patch-1
keep _USE_PULSEIO false for NotImplementedError
2 parents cc696b8 + a35a36b commit 39720fa

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)