Browse Source

fix:修复pwm捕获未释放dma通道的bug

Dozingfiretruck 4 years ago
parent
commit
a0e17b9fd9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/port/luat_pwm_air101.c

+ 1 - 0
app/port/luat_pwm_air101.c

@@ -53,6 +53,7 @@ static void pwm_dma_callback(void * channel)
 	msg.arg1 = (int)channel;
 	luat_msgbus_put(&msg, 0);
 	tls_pwm_stop(channel);
+	tls_dma_free(1);
 }
 
 int luat_pwm_setup(luat_pwm_conf_t* conf) {