Skip to content

Commit 6b376bc

Browse files
authored
reformat after black
1 parent e2a128c commit 6b376bc

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

examples/ina260_latch.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from adafruit_ina260 import INA260, Mode, ConversionTime
44

55

6-
if __name__ == '__main__':
6+
if __name__ == "__main__":
77
try:
88
i2c = board.I2C()
99
ina260 = INA260(i2c)
@@ -33,7 +33,8 @@
3333
% (ina260.current, ina260.voltage, ina260.power)
3434
)
3535

36-
# supposing meanwhile the alert limit was exceeded, setting an higher limit and clear the ALERT
36+
# supposing meanwhile the alert limit was exceeded, setting an higher limit
37+
# and clear the ALERT
3738
# 0x0100 x 1,25 mA = 320 mA as alert limit
3839
ina260.alert_limit = 0x0100
3940

@@ -46,4 +47,8 @@
4647
# reset the whole chip and wait 2 sec
4748
ina260.reset_bit = True
4849
time.sleep(2)
49-
print("MASK_REGISTER check, must be 0x0000 after reset: {}".format(ina260.mask_enable))
50+
print(
51+
"MASK_REGISTER check, must be 0x0000 after reset: {}".format(
52+
ina260.mask_enable
53+
)
54+
)

0 commit comments

Comments
 (0)