소스 검색

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);