Skip to content

Commit 946bb26

Browse files
authored
Merge pull request #31 from adafruit/dhalbert-ustruct
Remove obsolete reference to ustruct
2 parents ffafebc + 1756830 commit 946bb26

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

adafruit_adxl34x.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,11 @@
2828
2929
* Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
3030
"""
31+
from struct import unpack
3132

3233
from micropython import const
3334
from adafruit_bus_device import i2c_device
3435

35-
try:
36-
from struct import unpack
37-
except ImportError:
38-
from ustruct import unpack
3936
__version__ = "0.0.0-auto.0"
4037
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_ADXL34x.git"
4138
_ADXL345_DEFAULT_ADDRESS = const(0x53) # Assumes ALT address pin low

0 commit comments

Comments
 (0)