Skip to content

Commit 7bf7eea

Browse files
committed
Fix PEP8 errors in performance-test.py
1 parent 1a1d390 commit 7bf7eea

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

performance-test.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,21 @@
1212

1313
ina = INA219(SHUNT_OHMS, MAX_EXPECTED_AMPS, log_level=logging.INFO)
1414

15+
1516
def init():
1617
ina.configure(ina.RANGE_16V, ina.GAIN_AUTO)
1718

19+
1820
def read():
1921
for x in range(0, READS):
20-
v = ina.voltage()
22+
ina.voltage()
23+
2124

2225
if __name__ == "__main__":
2326
init()
2427
start = time.time()
2528
read()
2629
finish = time.time()
2730
elapsed = (finish - start) * 1000000
28-
print("Read time (average over %d reads): %d microseconds" % (READS, int(elapsed / READS)))
31+
print("Read time (average over %d reads): %d microseconds" %
32+
(READS, int(elapsed / READS)))

0 commit comments

Comments
 (0)