@@ -60,7 +60,7 @@ void GcodeSuite::M701() {
60
60
if (TERN0 (NO_MOTION_BEFORE_HOMING, axes_should_home ())) park_point.z = 0 ;
61
61
62
62
#if ENABLED(MIXING_EXTRUDER)
63
- const int8_t eindex = get_target_e_stepper_from_command ();
63
+ const int_fast8_t eindex = get_target_e_stepper_from_command ();
64
64
if (eindex < 0 ) return ;
65
65
66
66
const uint8_t old_mixing_tool = mixer.get_current_vtool ();
@@ -69,9 +69,9 @@ void GcodeSuite::M701() {
69
69
MIXER_STEPPER_LOOP (i) mixer.set_collector (i, i == uint8_t (eindex) ? 1.0 : 0.0 );
70
70
mixer.normalize ();
71
71
72
- const int8_t target_extruder = active_extruder;
72
+ const int_fast8_t target_extruder = active_extruder;
73
73
#else
74
- const int8_t target_extruder = get_target_extruder_from_command ();
74
+ const int_fast8_t target_extruder = get_target_extruder_from_command ();
75
75
if (target_extruder < 0 ) return ;
76
76
#endif
77
77
@@ -83,7 +83,7 @@ void GcodeSuite::M701() {
83
83
84
84
#if HAS_MULTI_EXTRUDER && (HAS_PRUSA_MMU1 || !HAS_MMU)
85
85
// Change toolhead if specified
86
- uint8_t active_extruder_before_filament_change = active_extruder;
86
+ uint_fast8_t active_extruder_before_filament_change = active_extruder;
87
87
if (active_extruder != target_extruder)
88
88
tool_change (target_extruder);
89
89
#endif
@@ -165,16 +165,16 @@ void GcodeSuite::M702() {
165
165
#endif
166
166
167
167
if (seenT) {
168
- const int8_t eindex = get_target_e_stepper_from_command ();
168
+ const int_fast8_t eindex = get_target_e_stepper_from_command ();
169
169
if (eindex < 0 ) return ;
170
170
mixer.T (MIXER_DIRECT_SET_TOOL);
171
171
MIXER_STEPPER_LOOP (i) mixer.set_collector (i, i == uint8_t (eindex) ? 1.0 : 0.0 );
172
172
mixer.normalize ();
173
173
}
174
174
175
- const int8_t target_extruder = active_extruder;
175
+ const int_fast8_t target_extruder = active_extruder;
176
176
#else
177
- const int8_t target_extruder = get_target_extruder_from_command ();
177
+ const int_fast8_t target_extruder = get_target_extruder_from_command ();
178
178
if (target_extruder < 0 ) return ;
179
179
#endif
180
180
@@ -186,7 +186,7 @@ void GcodeSuite::M702() {
186
186
187
187
#if HAS_MULTI_EXTRUDER && (HAS_PRUSA_MMU1 || !HAS_MMU)
188
188
// Change toolhead if specified
189
- uint8_t active_extruder_before_filament_change = active_extruder;
189
+ uint_fast8_t active_extruder_before_filament_change = active_extruder;
190
190
if (active_extruder != target_extruder)
191
191
tool_change (target_extruder);
192
192
#endif
0 commit comments