Skip to content

Commit db15206

Browse files
Fix build on ESP32 S3 with IDF v5.4
Some ESP32 boards don't support `SOC_RMT_SUPPORT_SLEEP_RETENTION`. As a result, I can't compile FastAccelStepper on my environment without additional changes due to assertion: https://github.com/espressif/esp-idf/blob/master/components/esp_driver_rmt/src/rmt_tx.c#L269 Beause for some reason `allow_pd` is always initialized to 1 for me Simply setting it to 0 is problematic, due to renaming: espressif/esp-idf@491901d Therefore, it remains to set all fields of `rmt_rx_channel_config_t` to 0. This can be done either by initializing through empty curly braces (since C++11) or using `memset`
1 parent d38a86a commit db15206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StepperISR_idf5_esp32_rmt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ void StepperQueue::init_rmt(uint8_t channel_num, uint8_t step_pin) {
226226
}
227227

228228
void StepperQueue::connect_rmt() {
229-
rmt_tx_channel_config_t config;
229+
rmt_tx_channel_config_t config{};
230230
config.gpio_num = (gpio_num_t)_step_pin;
231231
config.clk_src = RMT_CLK_SRC_DEFAULT;
232232
config.resolution_hz = TICKS_PER_S;

0 commit comments

Comments
 (0)