Explorar o código

add:pwm pulse-1

Dozingfiretruck %!s(int64=4) %!d(string=hai) anos
pai
achega
82ebf01f1a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);