🎨 Use LIMIT macro

This commit is contained in:
Scott Lahteine
2023-02-23 21:38:11 -06:00
parent c5d5c375fd
commit acfde4e7e5
5 changed files with 8 additions and 16 deletions

View File

@@ -3453,8 +3453,7 @@ void Planner::set_max_feedrate(const AxisEnum axis, float inMaxFeedrateMMS) {
// Doesn't matter because block_buffer_runtime_us is already too small an estimation.
bbru >>= 10;
// limit to about a minute.
NOMORE(bbru, 0x0000FFFFUL);
return bbru;
return _MIN(bbru, 0x0000FFFFUL);
}
void Planner::clear_block_buffer_runtime() {