Skip to content

Conversation

@homer-aty
Copy link

added a t_encountered flag to gc_execute_line.
This allows for a check before updating gc_state.tool as without this check, gc_state.tool was always updated with all modal changes regardless of if the user passed a T command or not. Previous behavior:
$G> [GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0]
T4> [GC:G0 G54 G17 G21 G90 G94 M5 M9 T4 F0 S0]
G91> [GC:G0 G54 G17 G21 G91 G94 M5 M9 T0 F0 S0]

New behavior:
$G> [GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0]
T4> [GC:G0 G54 G17 G21 G90 G94 M5 M9 T4 F0 S0]
G91> [GC:G0 G54 G17 G21 G91 G94 M5 M9 T4 F0 S0]

added a t_encountered flag to gc_execute_line. 
This allows for a check before updating gc_state.tool as without this check, gc_state.tool was always updated with all modal changes regardless of if the user passed a T command or not. 
Previous behavior: 
$G> [GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0]
T4> [GC:G0 G54 G17 G21 G90 G94 M5 M9 T4 F0 S0]
G91> [GC:G0 G54 G17 G21 G91 G94 M5 M9 T0 F0 S0]

New behavior:
$G> [GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0]
T4> [GC:G0 G54 G17 G21 G90 G94 M5 M9 T4 F0 S0]
G91> [GC:G0 G54 G17 G21 G91 G94 M5 M9 T4 F0 S0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant