🐛 Fix M_State_grbl when G29 calls G28

This commit is contained in:
Scott Lahteine
2022-03-02 16:04:17 -06:00
parent 9b17699b9b
commit 43d4e30668
4 changed files with 36 additions and 18 deletions

View File

@ -265,9 +265,11 @@ void report_current_position_projected();
void report_current_position_moving();
#if ENABLED(FULL_REPORT_TO_HOST_FEATURE)
inline void set_and_report_grblstate(const M_StateEnum state) {
M_State_grbl = state;
report_current_grblstate_moving();
inline void set_and_report_grblstate(const M_StateEnum state, const bool force=true) {
if (force || M_State_grbl != state) {
M_State_grbl = state;
report_current_grblstate_moving();
}
}
#endif