grblHAL / RP2040

grblHAL driver for RP2040 (Pi Pico)
Other
109 stars 50 forks source link

Fix to allow trinamic plugin to detect ganged axis drivers #57

Closed batman-ua closed 1 year ago

batman-ua commented 1 year ago

Trinamic plugin detects amount of drivers based on motor_iterator or based on number of axis if no motor_iterator provided. (https://github.com/grblHAL/Plugins_motor/blob/master/trinamic.c#L1812). In case of ganged axis M122 and other commands operate only on one of two motors for ganged axis if no hal.stepper.motor_iterator privided. This change makes motor_iterator available to Trinamic plugin via hal.stepper.motor_iterator and allows to detect all drivers.

terjeio commented 1 year ago

Thanks for spotting this!