We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1210a49 commit f170e93Copy full SHA for f170e93
adafruit_si4713.py
@@ -32,7 +32,10 @@
32
import time
33
34
from micropython import const
35
-import ustruct
+try:
36
+ import struct
37
+except:
38
+ import ustruct as struct
39
40
import adafruit_bus_device.i2c_device as i2c_device
41
@@ -379,7 +382,7 @@ def input_level(self):
379
382
"""
380
383
# Perform ASQ request, then parse out 8 bit _signed_ input level value.
381
384
self._asq_status()
- return ustruct.unpack('bbbbb', self._BUFFER)[4]
385
+ return struct.unpack('bbbbb', self._BUFFER)[4]
386
387
@property
388
def audio_signal_status(self):
0 commit comments