change pca9685 channel range(0 ~ 15)
[apps/native/gear-racing-car.git] / src / resource / resource_servo_motor.c
index 512cc5b..e16df2e 100644 (file)
@@ -50,7 +50,7 @@ void resource_close_servo_motor_all(void)
 {
        unsigned int i;
 
-       for (i = 1; i <= SERVO_MOTOR_MAX; i++)
+       for (i = ; i <= SERVO_MOTOR_MAX; i++)
                resource_close_servo_motor(i);
 
        return;
@@ -60,9 +60,6 @@ int resource_set_servo_motor_value(unsigned int motor_id, int value)
 {
        int ret = 0;
 
-       if (motor_id == 0)
-               return -1;
-
        if (motor_id > SERVO_MOTOR_MAX)
                return -1;