projects
/
apps
/
native
/
gear-racing-car.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
change pca9685 channel range(0 ~ 15)
[apps/native/gear-racing-car.git]
/
src
/
resource
/
resource_servo_motor.c
diff --git
a/src/resource/resource_servo_motor.c
b/src/resource/resource_servo_motor.c
index
512cc5b
..
e16df2e
100644
(file)
--- a/
src/resource/resource_servo_motor.c
+++ b/
src/resource/resource_servo_motor.c
@@
-50,7
+50,7
@@
void resource_close_servo_motor_all(void)
{
unsigned int i;
- for (i =
1
; i <= SERVO_MOTOR_MAX; i++)
+ for (i =
0
; 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;