This was causing stepper initialization to randomly fail (on ESP32-S3) because sometimes _stepper_cnt was initialized to a non-zero value, and the check for _stepper_cnt >= MAX_STEPPER (in stepperConnectToPin) evaluated to true – even on the first stepper added.
This was causing stepper initialization to randomly fail (on ESP32-S3) because sometimes
_stepper_cnt
was initialized to a non-zero value, and the check for_stepper_cnt >= MAX_STEPPER
(instepperConnectToPin
) evaluated to true – even on the first stepper added.