Merge pull request #4168 from gudnimg/next_feedrate_remove

Cleanup: Remove `next_feedrate` from global scope
This commit is contained in:
3d-gussner 2023-05-05 12:36:04 +02:00 committed by GitHub
commit fd2184801f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -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;
@ -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;
}
}