Browse Source

add:pwm pulse-1

Dozingfiretruck 4 years ago
parent
commit
82ebf01f1a
1 changed files with 1 additions and 1 deletions
  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);