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
282 stars 67 forks source link

RampGenerator fails to compile when built in debug #259

Closed dmbuck32 closed 1 month ago

dmbuck32 commented 1 month ago

The startRun function in the RampGenerator class has a debug section that contains an old _config struct reference. The rest of the code uses the _parameters struct.

.pio/libdeps/debug/FastAccelStepper/src/RampGenerator.cpp: In member function 'int8_t RampGenerator::startRun(bool)':
.pio/libdeps/debug/FastAccelStepper/src/RampGenerator.cpp:43:27: error: '_config' was not declared in this scope
           _rw.curr_ticks, _config->min_travel_ticks);
                           ^~~~~~~