Skip to content

Commit a75e35a

Browse files
authored
Merge pull request #11 from siddacious/bus_voltage_range_fix
Fixes #10, fix found by @barbudor, tested and committed by @siddacious
2 parents 9b37671 + 35ed7b2 commit a75e35a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ina219.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def __init__(self, i2c_bus, addr=0x40):
175175
raw_shunt_voltage = ROUnaryStruct(_REG_SHUNTVOLTAGE, ">h")
176176

177177
#bus voltage register
178-
raw_bus_voltage = ROBits( 12, _REG_BUSVOLTAGE, 3, 2, False)
178+
raw_bus_voltage = ROBits( 13, _REG_BUSVOLTAGE, 3, 2, False)
179179
conversion_ready = ROBit( _REG_BUSVOLTAGE, 1, 2, False)
180180
overflow = ROBit( _REG_BUSVOLTAGE, 0, 2, False)
181181

0 commit comments

Comments
 (0)