Merge pull request #6071 from Roxy-3D/RCBugFix
Allow FWRETRACT with UBL Enabled
This commit is contained in:
commit
b3c4f71c6f
@ -146,7 +146,7 @@
|
|||||||
Random_Deviation = 0.0,
|
Random_Deviation = 0.0,
|
||||||
Layer_Height = LAYER_HEIGHT;
|
Layer_Height = LAYER_HEIGHT;
|
||||||
|
|
||||||
bool retracted = false; // We keep track of the state of the nozzle to know if it
|
bool G26_retracted = false; // We keep track of the state of the nozzle to know if it
|
||||||
// is currently retracted or not. This allows us to be
|
// is currently retracted or not. This allows us to be
|
||||||
// less careful because mis-matched retractions and un-retractions
|
// less careful because mis-matched retractions and un-retractions
|
||||||
// won't leave us in a bad state.
|
// won't leave us in a bad state.
|
||||||
@ -673,8 +673,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
void retract_filament() {
|
void retract_filament() {
|
||||||
if (!retracted) { // Only retract if we are not already retracted!
|
if (!G26_retracted) { // Only retract if we are not already retracted!
|
||||||
retracted = true;
|
G26_retracted = true;
|
||||||
if (G26_Debug_flag) SERIAL_ECHOLNPGM(" Decided to do retract.");
|
if (G26_Debug_flag) SERIAL_ECHOLNPGM(" Decided to do retract.");
|
||||||
move_to(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], -1.0 * Retraction_Multiplier);
|
move_to(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], -1.0 * Retraction_Multiplier);
|
||||||
if (G26_Debug_flag) SERIAL_ECHOLNPGM(" Retraction done.");
|
if (G26_Debug_flag) SERIAL_ECHOLNPGM(" Retraction done.");
|
||||||
@ -682,9 +682,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
void un_retract_filament() {
|
void un_retract_filament() {
|
||||||
if (retracted) { // Only un-retract if we are retracted.
|
if (G26_retracted) { // Only un-retract if we are retracted.
|
||||||
move_to(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], 1.2 * Retraction_Multiplier);
|
move_to(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], 1.2 * Retraction_Multiplier);
|
||||||
retracted = false;
|
G26_retracted = false;
|
||||||
if (G26_Debug_flag) SERIAL_ECHOLNPGM(" unretract done.");
|
if (G26_Debug_flag) SERIAL_ECHOLNPGM(" unretract done.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user