Skip to content

Commit 5fa3a28

Browse files
committed
Ran pre-commit
1 parent cdda5cc commit 5fa3a28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adafruit_motor/stepper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ def __init__(
114114
self._coil = (ain2, bin1, ain1, bin2)
115115
for i in range(4):
116116
if self._coil[i].frequency < 1500:
117-
if hasattr(self._coil[i], "variable_frequency") and not self._coil[i].variable_frequency:
117+
if (
118+
hasattr(self._coil[i], "variable_frequency")
119+
and not self._coil[i].variable_frequency
120+
):
118121
raise ValueError(
119122
"PWMOut outputs must either be set to at least "
120123
"1500 Hz or allow variable frequency."

0 commit comments

Comments
 (0)