We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c71b9e4 commit cdda5ccCopy full SHA for cdda5cc
adafruit_motor/stepper.py
@@ -114,7 +114,7 @@ def __init__(
114
self._coil = (ain2, bin1, ain1, bin2)
115
for i in range(4):
116
if self._coil[i].frequency < 1500:
117
- if not self._coil[i].variable_frequency:
+ if hasattr(self._coil[i], "variable_frequency") and not self._coil[i].variable_frequency:
118
raise ValueError(
119
"PWMOut outputs must either be set to at least "
120
"1500 Hz or allow variable frequency."
0 commit comments