Skip to content

Commit d849d9d

Browse files
committed
Fix example displaying amperes instead of miliamperes
1 parent 1fb64c1 commit d849d9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ina228_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
while True:
2020
print("\nCurrent Measurements:")
21-
print(f"Current: {ina228.current:.2f} mA")
21+
print(f"Current: {ina228.current*1000:.2f} mA")
2222
print(f"Bus Voltage: {ina228.bus_voltage:.2f} V")
2323
print(f"Shunt Voltage: {ina228.shunt_voltage*1000:.2f} mV")
2424
print(f"Power: {ina228.power:.2f} mW")

0 commit comments

Comments
 (0)