Merge pull request #1515 from colincross/esp32c3_gpio_matrix_out

Use correct cancel value for gpio_matrix_out on esp32c3
This commit is contained in:
Sam Guyer 2023-07-08 16:16:16 -04:00 committed by GitHub
commit 36e27402c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -343,8 +343,10 @@ void IRAM_ATTR ESP32RMTController::doneOnChannel(rmt_channel_t channel, void * a
ESP32RMTController * pController = gOnChannel[channel];
// -- Turn off output on the pin
// SZG: Do I really need to do this?
gpio_matrix_out(pController->mPin, 0x100, 0, 0);
// Otherwise the pin will stay connected to the RMT controller,
// and if the same RMT controller is used for another output
// pin the RMT output will be routed to both pins.
gpio_matrix_out(pController->mPin, SIG_GPIO_OUT_IDX, 0, 0);
// -- Turn off the interrupts
// rmt_set_tx_intr_en(channel, false);