LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.73k stars 1.13k forks source link

fix double indication of 'G52'/'G92' and 'G92.2' in active gcodes list #2935

Closed Sigma1912 closed 3 months ago

Sigma1912 commented 3 months ago

This modification eliminates double entries of 'G52'/'G92/G92.[1,2,3]' in the active gcodes list.

Background: Modal Group 0 tags are cleared on startup, m2/m30 and abort, thus all 'G52'/'G92/G92.[1,2,3]' tags disappear while the offset remains applied. https://github.com/LinuxCNC/linuxcnc/commit/26aeab962d82a8249275e98089bff37a9e342845 introduced modal group 16 for 'G92.[1,2,3]' tags and added 'G92.2' to active gcode list [16] if parameter[5210] was active or 'G92.3' otherwise. This led to confusing entries in the active gcode list see #2743, #2744.