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.
Trinamic plugin detects amount of drivers based on
motor_iterator
or based on number of axis if nomotor_iterator
provided. (https://github.com/grblHAL/Plugins_motor/blob/master/trinamic.c#L1812). In case of ganged axisM122
and other commands operate only on one of two motors for ganged axis if nohal.stepper.motor_iterator
privided. This change makesmotor_iterator
available to Trinamic plugin viahal.stepper.motor_iterator
and allows to detect all drivers.