projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb2b6dd
)
优化pwm stop返回值的处理
1308/3
1308/head
author
penglei
<1624952103@qq.com>
Thu, 31 Oct 2024 13:36:09 +0000
(21:36 +0800)
committer
penglei
<1624952103@qq.com>
Thu, 31 Oct 2024 13:36:09 +0000
(21:36 +0800)
code/sdk/drivers/peripheral/vibrator/vibrator.c
patch
|
blob
|
history
diff --git
a/code/sdk/drivers/peripheral/vibrator/vibrator.c
b/code/sdk/drivers/peripheral/vibrator/vibrator.c
index
d3fc915
..
c4e9cf7
100644
(file)
--- a/
code/sdk/drivers/peripheral/vibrator/vibrator.c
+++ b/
code/sdk/drivers/peripheral/vibrator/vibrator.c
@@
-146,7
+146,7
@@
static int pwm_stop(void)
#ifdef VIB_DEBUG
PRINT("+++++++ pwm stoped +++++++ \r\n");
#endif
- return
0
;
+ return
ret
;
}
static uint8_t vibrating = 0;