Skip to content

Commit

Permalink
Don't reset pause_position on every M125
Browse files Browse the repository at this point in the history
Change in memory:
Flash: -76 bytes
SRAM: 0 bytes
  • Loading branch information
gudnimg authored and 3d-gussner committed Nov 20, 2023
1 parent 4a4c015 commit 0d60a82
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7705,11 +7705,6 @@ SERIAL_PROTOCOLPGM("\n\n");
case 125:
case 601:
{
// Set default values
pause_position[X_AXIS] = X_PAUSE_POS;
pause_position[Y_AXIS] = Y_PAUSE_POS;
pause_position[Z_AXIS] = Z_PAUSE_LIFT;

for (uint8_t axis = 0; axis < E_AXIS; axis++) {
if (code_seen(axis_codes[axis])) {
pause_position[axis] = constrain(code_value(), min_pos[axis], max_pos[axis]);
Expand Down

0 comments on commit 0d60a82

Please sign in to comment.