Skip to content

Commit e56c69e

Browse files
authored
Merge pull request #14 from SaintGimp/fix-count-constants
Fix count constants which were off by one
2 parents f15a654 + 7537e2f commit e56c69e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

adafruit_ina260.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ class AveragingCount:
151151
152152
"""
153153

154-
COUNT_1 = const(0x1)
155-
COUNT_4 = const(0x2)
156-
COUNT_16 = const(0x3)
157-
COUNT_64 = const(0x4)
158-
COUNT_128 = const(0x5)
159-
COUNT_256 = const(0x6)
160-
COUNT_512 = const(0x7)
161-
COUNT_1024 = const(0x8)
154+
COUNT_1 = const(0x0)
155+
COUNT_4 = const(0x1)
156+
COUNT_16 = const(0x2)
157+
COUNT_64 = const(0x3)
158+
COUNT_128 = const(0x4)
159+
COUNT_256 = const(0x5)
160+
COUNT_512 = const(0x6)
161+
COUNT_1024 = const(0x7)
162162

163163

164164
# pylint: enable=too-few-public-methods

0 commit comments

Comments
 (0)