feat(rmt): check if the gpio number is reserved by others

This commit is contained in:
morris
2024-02-20 16:21:25 +08:00
parent c952cfb673
commit 391a187c11
4 changed files with 37 additions and 20 deletions

View File

@@ -205,7 +205,6 @@ esp_err_t rmt_apply_carrier(rmt_channel_handle_t channel, const rmt_carrier_conf
esp_err_t rmt_del_channel(rmt_channel_handle_t channel)
{
ESP_RETURN_ON_FALSE(channel, ESP_ERR_INVALID_ARG, TAG, "invalid argument");
gpio_reset_pin(channel->gpio_num);
return channel->del(channel);
}