disable channel before deleting it

This commit is contained in:
Michael Miller
2025-02-18 10:13:52 -08:00
parent 3cbe056e4c
commit 14c55faa6f

View File

@@ -77,6 +77,7 @@ public:
// arbitrary time out of 10 seconds // arbitrary time out of 10 seconds
ESP_ERROR_CHECK_WITHOUT_ABORT(rmt_tx_wait_all_done(_channel, 10000 / portTICK_PERIOD_MS)); ESP_ERROR_CHECK_WITHOUT_ABORT(rmt_tx_wait_all_done(_channel, 10000 / portTICK_PERIOD_MS));
ESP_ERROR_CHECK(rmt_disable(_channel));
ESP_ERROR_CHECK(rmt_del_channel(_channel)); ESP_ERROR_CHECK(rmt_del_channel(_channel));
gpio_matrix_out(_pin, 0x100, false, false); gpio_matrix_out(_pin, 0x100, false, false);