Skip to content
This repository was archived by the owner on Oct 29, 2019. It is now read-only.

Commit a7135b2

Browse files
committed
update magnetic to tuple
1 parent aaa717e commit a7135b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_lsm303.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def raw_magnetic(self):
160160
"""
161161
self._read_bytes(self._mag_device, _REG_MAG_OUT_X_H_M, 6, self._BUFFER)
162162
raw_values = struct.unpack_from('>hhh', self._BUFFER[0:6])
163-
return [n >> 4 for n in raw_values]
163+
return tuple([n >> 4 for n in raw_values])
164164

165165
@property
166166
def magnetic(self):

0 commit comments

Comments
 (0)