🧑‍💻 Remove LOOP macros (#25917)

This commit is contained in:
Scott Lahteine
2023-06-02 14:30:34 -05:00
committed by GitHub
parent 2691167afe
commit 86c811660e
122 changed files with 362 additions and 367 deletions

View File

@@ -1520,7 +1520,7 @@ void Planner::check_axes_activity() {
* The multiplier converts a given E value into a length.
*/
void Planner::calculate_volumetric_multipliers() {
LOOP_L_N(i, COUNT(filament_size)) {
for (uint8_t i = 0; i < COUNT(filament_size); ++i) {
volumetric_multiplier[i] = calculate_volumetric_multiplier(filament_size[i]);
refresh_e_factor(i);
}
@@ -2260,7 +2260,7 @@ bool Planner::_populate_block(
#if ENABLED(DISABLE_OTHER_EXTRUDERS) // Enable only the selected extruder
// Count down all steppers that were recently moved
LOOP_L_N(i, E_STEPPERS)
for (uint8_t i = 0; i < E_STEPPERS; ++i)
if (extruder_last_move[i]) extruder_last_move[i]--;
// Switching Extruder uses one E stepper motor per two nozzles