We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e95a615 + a9d8725 commit bebf023Copy full SHA for bebf023
hardware/esp8266com/esp8266/libraries/Servo/src/esp8266/Servo.cpp
@@ -146,6 +146,10 @@ Servo::Servo()
146
_servoIndex = s_servoCount++;
147
// store default values
148
s_servos[_servoIndex].usPulse = DEFAULT_PULSE_WIDTH;
149
+
150
+ // set default _minUs and _maxUs incase write() is called before attach()
151
+ _minUs = MIN_PULSE_WIDTH;
152
+ _maxUs = MAX_PULSE_WIDTH;
153
}
154
else {
155
_servoIndex = INVALID_SERVO; // too many servos
0 commit comments