Skip to content

Commit 148a5d3

Browse files
Moved busio import inside a try block to save memory
1 parent 5b2b9b2 commit 148a5d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_adxl34x.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@
3232

3333
from micropython import const
3434
from adafruit_bus_device import i2c_device
35-
import busio
3635

3736
try:
3837
from typing import Tuple, Dict
38+
# This is only needed for typing
39+
import busio # pylint: disable=unused-import
3940
except ImportError:
4041
pass
4142

0 commit comments

Comments
 (0)