Skip to content

Commit ce7d6ca

Browse files
committed
Improve comments
1 parent 896cd98 commit ce7d6ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adafruit_emc2101/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,15 @@ class to add those features, at the cost of increased memory usage.
145145
_mfg_id = ROUnaryStruct(_REG_MFGID, "<B")
146146
_int_temp = ROUnaryStruct(_INTERNAL_TEMP, "<b")
147147

148+
# Some of these registers are defined as two halves because
149+
# the chip does not support multi-byte reads or writes, and there
150+
# is currently no way to tell Struct to do a transaction for each byte.
151+
148152
# IMPORTANT! the sign bit for the external temp is in the msbyte so mark it as signed
149153
# and lsb as unsigned
150154
_ext_temp_msb = ROUnaryStruct(_EXTERNAL_TEMP_MSB, "<b")
151155
_ext_temp_lsb = ROUnaryStruct(_EXTERNAL_TEMP_LSB, "<B")
152156

153-
# _tach_read = ROUnaryStruct(_TACH_LSB, "<H")
154157
_tach_read_lsb = ROUnaryStruct(_TACH_LSB, "<B")
155158
_tach_read_msb = ROUnaryStruct(_TACH_MSB, "<B")
156159
_tach_mode_enable = RWBit(_REG_CONFIG, 2)

0 commit comments

Comments
 (0)