Explorar o código

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

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