General cleanup

This commit is contained in:
Scott Lahteine
2020-09-09 17:56:01 -05:00
parent 42619a3a81
commit d6bbcd020b
6 changed files with 18 additions and 20 deletions

View File

@ -115,9 +115,7 @@ void plan_arc(
);
// Divide total travel by nominal segment length
uint16_t segments = FLOOR(mm_of_travel / seg_length);
if (segments < min_segments) { // Too few segments?
segments = min_segments; // More segments
}
NOLESS(segments, min_segments); // At least some segments
seg_length = mm_of_travel / segments;
/**