From: penglei <1624952103@qq.com> Date: Thu, 31 Oct 2024 13:36:09 +0000 (+0800) Subject: 优化pwm stop返回值的处理 X-Git-Tag: fd230_release_V1.3.102~144^2~3 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1308%2Fhead;p=mirrors%2FFD230.git 优化pwm stop返回值的处理 --- diff --git a/code/sdk/drivers/peripheral/vibrator/vibrator.c b/code/sdk/drivers/peripheral/vibrator/vibrator.c index d3fc91578..c4e9cf74d 100644 --- 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;