优化pwm stop返回值的处理 1308/3 1308/head
authorpenglei <1624952103@qq.com>
Thu, 31 Oct 2024 13:36:09 +0000 (21:36 +0800)
committerpenglei <1624952103@qq.com>
Thu, 31 Oct 2024 13:36:09 +0000 (21:36 +0800)
code/sdk/drivers/peripheral/vibrator/vibrator.c

index d3fc915..c4e9cf7 100644 (file)
@@ -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;