Skip to content
Snippets Groups Projects
Commit 727a403b authored by GMagician's avatar GMagician Committed by Scott Lahteine
Browse files

[2.0.x] Fix NO_MOTION_BEFORE_HOMING unwanted behaviour (#8176)

* [2.0.x] Fix NO_MOTION_BEFORE_HOMING unwanted behaviour

NO_MOTION_BEFORE_HOMING should prevent XYZ movements only when homing is not done.
E axes should be allowed

* Update G0_G1.cpp

* Update G0_G1.cpp
parent 577659ca
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,12 @@ ...@@ -33,6 +33,12 @@
extern float destination[XYZE]; extern float destination[XYZE];
#if ENABLED(NO_MOTION_BEFORE_HOMING)
#define G0_G1_CONDITION !axis_unhomed_error(parser.seen('X'), parser.seen('Y'), parser.seen('Z'))
#else
#define G0_G1_CONDITION true
#endif
/** /**
* G0, G1: Coordinated movement of X Y Z E axes * G0, G1: Coordinated movement of X Y Z E axes
*/ */
...@@ -41,7 +47,7 @@ void GcodeSuite::G0_G1( ...@@ -41,7 +47,7 @@ void GcodeSuite::G0_G1(
bool fast_move/*=false*/ bool fast_move/*=false*/
#endif #endif
) { ) {
if (MOTION_CONDITIONS) { if (IsRunning() && G0_G1_CONDITION) {
get_destination_from_command(); // For X Y Z E F get_destination_from_command(); // For X Y Z E F
#if ENABLED(FWRETRACT) #if ENABLED(FWRETRACT)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment