Skip to content

Commit bdf122d

Browse files
committed
Reformatted per pre-commit
1 parent 4701a64 commit bdf122d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adafruit_motor/stepper.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ def __init__(
113113
# set a safe pwm freq for each output
114114
self._coil = (ain2, bin1, ain1, bin2)
115115
for i in range(4):
116-
if self._coil[i].frequency < 1500 and not self._coil[i].variable_frequency:
116+
if (
117+
self._coil[i].frequency < 1500
118+
and not self._coil[i].variable_frequency
119+
):
117120
raise ValueError(
118121
"PWMOut outputs must either be set to at least "
119122
"1500 Hz or allow variable frequency."

0 commit comments

Comments
 (0)