Skip to content

Commit c3c306f

Browse files
committed
Fixing warnings (unsigned comparisons to 0). (maniacbug)
1 parent cf64c4a commit c3c306f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Servo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ void Servo::writeMicroseconds(int value)
298298
{
299299
// calculate and store the values for the given channel
300300
byte channel = this->servoIndex;
301-
if( (channel >= 0) && (channel < MAX_SERVOS) ) // ensure channel is valid
301+
if( (channel < MAX_SERVOS) ) // ensure channel is valid
302302
{
303303
if( value < SERVO_MIN() ) // ensure pulse width is valid
304304
value = SERVO_MIN();

0 commit comments

Comments
 (0)