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_PCA9685.c
diff --git
a/src/resource/resource_PCA9685.c
b/src/resource/resource_PCA9685.c
index
e8b6275
..
20a5545
100644
(file)
--- a/
src/resource/resource_PCA9685.c
+++ b/
src/resource/resource_PCA9685.c
@@
-150,7
+150,7
@@
int resource_pca9685_init(unsigned int ch)
uint8_t mode1 = 0;
int ret = PERIPHERAL_ERROR_NONE;
- if (ch
== 0 || ch
> PCA9685_CH_MAX) {
+ if (ch > PCA9685_CH_MAX) {
_E("channel[%u] is out of range", ch);
return -1;
}