1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Fixing warnings (unsigned comparisons to 0). (maniacbug)

This commit is contained in:
David A. Mellis
2012-01-02 12:57:23 -05:00
parent c441bc1a0d
commit cce4ef7c69
2 changed files with 3 additions and 3 deletions

View File

@ -298,7 +298,7 @@ void Servo::writeMicroseconds(int value)
{
// calculate and store the values for the given channel
byte channel = this->servoIndex;
if( (channel >= 0) && (channel < MAX_SERVOS) ) // ensure channel is valid
if( (channel < MAX_SERVOS) ) // ensure channel is valid
{
if( value < SERVO_MIN() ) // ensure pulse width is valid
value = SERVO_MIN();