Skip to content

Commit bdd1478

Browse files
authored
Merge pull request #33 from kattni/update-collections
Added update to work with collections
2 parents d5491cd + 1253fe2 commit bdd1478

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adafruit_lis3dh.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
import time
3434
import math
3535
import digitalio
36-
from ucollections import namedtuple
36+
try:
37+
from collections import namedtuple
38+
except ImportError:
39+
from ucollections import namedtuple
3740
try:
3841
import struct
3942
except ImportError:

0 commit comments

Comments
 (0)