|
@@ -43,22 +43,22 @@ void GcodeSuite::M104() {
|
43
|
43
|
if (DEBUGGING(DRYRUN)) return;
|
44
|
44
|
|
45
|
45
|
#if ENABLED(MIXING_EXTRUDER) && MIXING_VIRTUAL_TOOLS > 1
|
46
|
|
- constexpr int8_t e = 0;
|
|
46
|
+ constexpr int8_t target_extruder = 0;
|
47
|
47
|
#else
|
48
|
|
- const int8_t e = get_target_extruder_from_command();
|
49
|
|
- if (e < 0) return;
|
|
48
|
+ const int8_t target_extruder = get_target_extruder_from_command();
|
|
49
|
+ if (target_extruder < 0) return;
|
50
|
50
|
#endif
|
51
|
51
|
|
52
|
52
|
if (parser.seenval('S')) {
|
53
|
53
|
const int16_t temp = parser.value_celsius();
|
54
|
54
|
#if ENABLED(SINGLENOZZLE)
|
55
|
|
- singlenozzle_temp[e] = temp;
|
56
|
|
- if (e != active_extruder) return;
|
|
55
|
+ singlenozzle_temp[target_extruder] = temp;
|
|
56
|
+ if (target_extruder != active_extruder) return;
|
57
|
57
|
#endif
|
58
|
|
- thermalManager.setTargetHotend(temp, e);
|
|
58
|
+ thermalManager.setTargetHotend(temp, target_extruder);
|
59
|
59
|
|
60
|
60
|
#if ENABLED(DUAL_X_CARRIAGE)
|
61
|
|
- if (dxc_is_duplicating() && e == 0)
|
|
61
|
+ if (dxc_is_duplicating() && target_extruder == 0)
|
62
|
62
|
thermalManager.setTargetHotend(temp ? temp + duplicate_extruder_temp_offset : 0, 1);
|
63
|
63
|
#endif
|
64
|
64
|
|