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 cf64c4a commit c3c306fCopy full SHA for c3c306f
Servo.cpp
@@ -298,7 +298,7 @@ void Servo::writeMicroseconds(int value)
298
{
299
// calculate and store the values for the given channel
300
byte channel = this->servoIndex;
301
- if( (channel >= 0) && (channel < MAX_SERVOS) ) // ensure channel is valid
+ if( (channel < MAX_SERVOS) ) // ensure channel is valid
302
303
if( value < SERVO_MIN() ) // ensure pulse width is valid
304
value = SERVO_MIN();
0 commit comments