1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #1506 from haukepetersen/fix_driver_servo

drivers/servo: fixed very stupid coding error
This commit is contained in:
Ludwig Ortmann 2014-07-31 17:37:09 +02:00
commit 5e8517d956

View File

@ -39,7 +39,7 @@ int servo_set(servo_t *dev, unsigned int pos)
if (pos > dev->max) {
pos = dev->max;
}
else (pos < dev->min) {
else if (pos < dev->min) {
pos = dev->min;
}
return pwm_set(dev->device, dev->channel, pos);