gin66 / FastAccelStepper

A high speed stepper library for Atmega 168/328p (nano), Atmega32u4, Atmega 2560, ESP32, ESP32S2, ESP32S3, ESP32C3 and Atmel SAM Due
MIT License
283 stars 67 forks source link

deprecated instruction #189

Closed Elpablito closed 3 months ago

Elpablito commented 12 months ago

I am reporting for yuor information a log of platformIO StepperISR_esp32_rmt.cpp 2

if (!q->_isRunning) { // second invocation to stop. rmt_tx_stop(q->channel); rmt_rx_stop(q->channel); rmt_memory_rw_rst(q->channel); q->_rmtStopped = true; }

[{ "resource": "/c:/Users/gsrad/Documents/Lavori_con_Platform/ESP32 Nema23 Test/lib/FastAccelStepper/src/StepperISR_esp32_rmt.cpp", "owner": "cpp", "severity": 4, "message": "'esp_err_t rmt_memory_rw_rst(rmt_channel_t)' is deprecated: use rmt_tx_memory_reset or rmt_rx_memory_reset instead [-Wdeprecated-declarations]", "startLineNumber": 283, "startColumn": 28, "endLineNumber": 283, "endColumn": 28 }]

gin66 commented 3 months ago

Reproduced in automatic builds. Need to be fixed

gin66 commented 3 months ago

The warning has been fixed in pre-0.3.12.

For esp32 just have commented the instruction out - seems to work. For esp32 derivates replaced with rmt_tx_memory_reset().