فهرست منبع

add:pwm pulse-1

Dozingfiretruck 4 سال پیش
والد
کامیت
82ebf01f1a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/port/luat_pwm_air101.c

+ 1 - 1
app/port/luat_pwm_air101.c

@@ -157,7 +157,7 @@ int luat_pwm_setup(luat_pwm_conf_t* conf) {
 	channel = channel%10;
 // #endif
     tls_pwm_stop(channel);
-    ret = tls_pwm_init(channel, period, pulse, pnum);
+    ret = tls_pwm_init(channel, period, pulse-1, pnum);
     if(ret != WM_SUCCESS)
         return ret;
     tls_pwm_start(channel);