From 35ed7b2d79bfeb31c247b0a4249a3081ac789a7b Mon Sep 17 00:00:00 2001 From: siddacious Date: Fri, 12 Jul 2019 13:58:52 -0700 Subject: [PATCH] Fixes #10, fix found by @barbudor, tested and committed by @siddacious --- adafruit_ina219.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_ina219.py b/adafruit_ina219.py index 9886817..a9ac25a 100644 --- a/adafruit_ina219.py +++ b/adafruit_ina219.py @@ -175,7 +175,7 @@ def __init__(self, i2c_bus, addr=0x40): raw_shunt_voltage = ROUnaryStruct(_REG_SHUNTVOLTAGE, ">h") #bus voltage register - raw_bus_voltage = ROBits( 12, _REG_BUSVOLTAGE, 3, 2, False) + raw_bus_voltage = ROBits( 13, _REG_BUSVOLTAGE, 3, 2, False) conversion_ready = ROBit( _REG_BUSVOLTAGE, 1, 2, False) overflow = ROBit( _REG_BUSVOLTAGE, 0, 2, False)