Skip to content

Commit 7ea9340

Browse files
committed
Update adafruit_ina228.py
1 parent a2ac482 commit 7ea9340

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

adafruit_ina228.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,12 @@ def averaging_count(self, count: int):
204204
counts = [1, 4, 16, 64, 128, 256, 512, 1024]
205205
if count not in counts:
206206
raise ValueError(
207-
f"Invalid averaging count: {count}. "
208-
f"Valid values are: {', '.join(map(str, counts))}."
207+
"Invalid averaging count: "
208+
+ str(count)
209+
+ ". "
210+
+ "Valid values are: "
211+
+ ", ".join(map(str, counts))
212+
+ "."
209213
)
210214
self._avg_count = counts.index(count)
211215

0 commit comments

Comments
 (0)