Skip to content

Commit 8546db0

Browse files
authored
Merge pull request #32 from tekktrik/fix/fix-pwmio
Only error if both imports cannot be found, otherwise use pwmio
2 parents 695e52c + 07bdebb commit 8546db0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_rtttl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
except ImportError:
3333
audiocore = audioio
3434
except ImportError as e:
35-
if not WAVEFORM_AVAILABLE:
35+
if AUDIOIO_AVAILABLE and not WAVEFORM_AVAILABLE:
3636
raise e
3737

3838
try:

0 commit comments

Comments
 (0)