Cleanup: Remove next_feedrate from global scope
No change in memory
This commit is contained in:
parent
eb8ac250cc
commit
228250f050
|
|
@ -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;
|
||||
|
||||
|
|
@ -9138,8 +9135,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue