Skip to content

Commit

Permalink
Merge pull request MarlinFirmware#4168 from gudnimg/next_feedrate_remove
Browse files Browse the repository at this point in the history
Cleanup: Remove `next_feedrate` from global scope
  • Loading branch information
3d-gussner authored May 5, 2023
2 parents 427e88a + 228250f commit fd21848
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,6 @@ static float offset[3] = {0.0, 0.0, 0.0};
// Current feedrate
float feedrate = 1500.0;

// Feedrate for the next move
static float next_feedrate;

// Original feedrate saved during homing moves
static float saved_feedrate;

Expand Down Expand Up @@ -9132,8 +9129,8 @@ void get_coordinates() {
else destination[i] = current_position[i]; //Are these else lines really needed?
}
if(code_seen('F')) {
next_feedrate = code_value();
if(next_feedrate > 0.0) feedrate = next_feedrate;
const float next_feedrate = code_value();
if(next_feedrate > 0.f) feedrate = next_feedrate;
}
}

Expand Down

0 comments on commit fd21848

Please sign in to comment.