Skip to content

Commit

Permalink
Fix erronous '0' in last element of mcodes array (10 elements)
Browse files Browse the repository at this point in the history
Active_m_codes array is initialized with zeros by default. The last element is never written to in the
code so it shows up as a zero and is falsely interpreted as an active M0.
  • Loading branch information
Sigma1912 committed Nov 23, 2024
1 parent f717008 commit 665baf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emc/rs274ngc/interp_setup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ setup::setup() :
w_origin_offset(0.0),

active_g_codes{},
active_m_codes{},
active_m_codes{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},
active_settings{},

arc_not_allowed(0),
Expand Down

0 comments on commit 665baf2

Please sign in to comment.