Skip to content

Commit

Permalink
fix rmt_memory_rw_rst() deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gin66 committed Mar 24, 2024
1 parent c1f89e4 commit 55e13d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/StepperISR_esp32_rmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ void StepperQueue::startQueue_rmt() {
#endif
rmt_tx_stop(channel);
// rmt_rx_stop(channel);
rmt_memory_rw_rst(channel);
rmt_tx_memory_reset(channel);
// the following assignment should not be needed;
// RMT.data_ch[channel] = 0;
uint32_t *mem = FAS_RMT_MEM(channel);
Expand Down
2 changes: 1 addition & 1 deletion src/StepperISR_esp32c3_rmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void StepperQueue::init_rmt(uint8_t channel_num, uint8_t step_pin) {
rmt_set_mem_block_num(channel, 1);
rmt_set_tx_carrier(channel, false, 0, 0, RMT_CARRIER_LEVEL_LOW);
rmt_tx_stop(channel);
rmt_memory_rw_rst(channel);
rmt_tx_memory_reset(channel);
// rmt_rx_stop(channel); TX only channel !
// rmt_tx_memory_reset is not defined in arduino V340 and based on test
// result not needed rmt_tx_memory_reset(channel);
Expand Down
2 changes: 1 addition & 1 deletion src/StepperISR_esp32s3_rmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void StepperQueue::init_rmt(uint8_t channel_num, uint8_t step_pin) {
rmt_set_mem_block_num(channel, 1);
rmt_set_tx_carrier(channel, false, 0, 0, RMT_CARRIER_LEVEL_LOW);
rmt_tx_stop(channel);
rmt_memory_rw_rst(channel);
rmt_tx_memory_reset(channel);
// rmt_rx_stop(channel); TX only channel !
// rmt_tx_memory_reset is not defined in arduino V340 and based on test
// result not needed rmt_tx_memory_reset(channel);
Expand Down

0 comments on commit 55e13d3

Please sign in to comment.