Option to use raw digipot values (#17536)

This commit is contained in:
grauerfuchs
2020-04-18 23:56:23 -04:00
committed by GitHub
parent 8e8ba46cb6
commit 4a5a3d27ed
13 changed files with 89 additions and 84 deletions

View File

@ -780,7 +780,7 @@ namespace ExtUI {
*/
int16_t mmToWholeSteps(const float mm, const axis_t axis) {
const float steps = mm / planner.steps_to_mm[axis];
return steps > 0 ? ceil(steps) : floor(steps);
return steps > 0 ? CEIL(steps) : FLOOR(steps);
}
#endif