Skip to content

Commit

Permalink
Update GCode.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
bdring committed Dec 11, 2024
1 parent 7e73b08 commit 08f99fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FluidNC/src/GCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ gc_modal_t modal_defaults = {

void gc_init() {
// Reset parser state:
auto save_tlo = gc_state.tool_length_offset; // we want TLO to persist until reboot.
memset(&gc_state, 0, sizeof(parser_state_t));
gc_state.tool_length_offset = save_tlo;

// Load default G54 coordinate system.
gc_state.modal = modal_defaults;
Expand Down

0 comments on commit 08f99fc

Please sign in to comment.