diff options
author | Jeonghoon Park <jh1979.park@samsung.com> | 2017-12-15 17:33:07 +0900 |
---|---|---|
committer | Jeonghoon Park <jh1979.park@samsung.com> | 2017-12-15 17:33:07 +0900 |
commit | 588e05f53ce6086714efc3be4b108db1b6899c9a (patch) | |
tree | 10a52a871ddf165d2170b8274c0d585bf2081a5a /src | |
parent | 5b984b443ccae0fbaed84ac9ef729c30af3a9db3 (diff) | |
download | gear-racing-car-588e05f53ce6086714efc3be4b108db1b6899c9a.tar.gz gear-racing-car-588e05f53ce6086714efc3be4b108db1b6899c9a.tar.bz2 gear-racing-car-588e05f53ce6086714efc3be4b108db1b6899c9a.zip |
refer max channel number from pca9685 in servo motor
Diffstat (limited to 'src')
-rw-r--r-- | src/resource/resource_PCA9685.c | 1 | ||||
-rw-r--r-- | src/resource/resource_servo_motor.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/resource/resource_PCA9685.c b/src/resource/resource_PCA9685.c index 3a04ac9..a4c1e55 100644 --- a/src/resource/resource_PCA9685.c +++ b/src/resource/resource_PCA9685.c @@ -22,7 +22,6 @@ #include <peripheral_io.h> #include "log.h" -#define PCA9685_CH_MAX 16 #define RPI3_I2C_BUS 1 /* Registers/etc: */ diff --git a/src/resource/resource_servo_motor.c b/src/resource/resource_servo_motor.c index 4226597..a1a2b69 100644 --- a/src/resource/resource_servo_motor.c +++ b/src/resource/resource_servo_motor.c @@ -19,7 +19,7 @@ #include "log.h" #include "resource/resource_PCA9685.h" -#define SERVO_MOTOR_MAX 16 +#define SERVO_MOTOR_MAX PCA9685_CH_MAX static int servo_motor_index[SERVO_MOTOR_MAX] = {0, }; |