Skip to content

Commit

Permalink
🩹 const_float_t => float
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Apr 18, 2023
1 parent 4d8ab1c commit e6308f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/module/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3198,9 +3198,9 @@ void Stepper::init() {
else if (zeta >= 1.0f) factor2 = 0.0f;
else {
factor2 = 64.44056192 + -99.02008832 * zeta;
const_float_t zeta2 = zeta * zeta;
const float zeta2 = sq(zeta);
factor2 += -7.58095488 * zeta2;
const_float_t zeta3 = zeta2 * zeta;
const float zeta3 = zeta2 * zeta;
factor2 += 43.073216 * zeta3;
factor2 = floor(factor2);
}
Expand Down

0 comments on commit e6308f5

Please sign in to comment.