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

stepperConnectToPin() returns success, even internal init fails #246

Open gin66 opened 3 months ago

gin66 commented 3 months ago

see #245 for reference

stepperConnectToPin() calls stepper->init(), which can fail silently. stepper->init() calls queue->init(), which too can fail silently.

Bugfix need to propagate errors up to stepperConnectToPin() and reverse prepared allocation of stepper.