mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-03-07 18:44:51 -07:00
_MAX
This commit is contained in:
parent
3a642f72c1
commit
35852ef184
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ public:
|
|||
+ 0.5f * (sq(initial_speed) + sq(final_speed));
|
||||
float ratio_limited_speed = SQRT(max_nominal_from_ratio);
|
||||
// Don’t allow it to go below endpoints (otherwise T1/T3 go negative)
|
||||
const float v_floor = MAX(initial_speed, final_speed);
|
||||
const float v_floor = _MAX(initial_speed, final_speed);
|
||||
NOLESS(ratio_limited_speed, v_floor);
|
||||
NOMORE(nominal_speed, ratio_limited_speed);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue