mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-07 00:04:36 +03:00
Merge branch 'master' of github.com:arduino/Arduino into new-extension
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user