Commit 4f4b9507 authored by MagoKimbra's avatar MagoKimbra

Adjust M109 for SINGLENZOZZLE

parent a7195a1f
...@@ -4400,6 +4400,9 @@ void process_commands() ...@@ -4400,6 +4400,9 @@ void process_commands()
{ {
if(setTargetedHotend(104)) break; if(setTargetedHotend(104)) break;
if(debugDryrun()) break; if(debugDryrun()) break;
#ifdef SINGLENOZZLE
if (tmp_extruder != active_extruder) break;
#endif
if (code_seen('S')) setTargetHotend(code_value(), tmp_extruder); if (code_seen('S')) setTargetHotend(code_value(), tmp_extruder);
#ifdef DUAL_X_CARRIAGE #ifdef DUAL_X_CARRIAGE
if (dual_x_carriage_mode == DXC_DUPLICATION_MODE && tmp_extruder == 0) if (dual_x_carriage_mode == DXC_DUPLICATION_MODE && tmp_extruder == 0)
...@@ -4500,6 +4503,9 @@ void process_commands() ...@@ -4500,6 +4503,9 @@ void process_commands()
{ {
if(setTargetedHotend(109)) break; if(setTargetedHotend(109)) break;
if(debugDryrun()) break; if(debugDryrun()) break;
#ifdef SINGLENOZZLE
if (tmp_extruder != active_extruder) break;
#endif
LCD_MESSAGEPGM(MSG_HEATING); LCD_MESSAGEPGM(MSG_HEATING);
#ifdef AUTOTEMP #ifdef AUTOTEMP
autotemp_enabled=false; autotemp_enabled=false;
......
...@@ -125,9 +125,7 @@ FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) { ...@@ -125,9 +125,7 @@ FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) {
#ifndef SINGLENOZZLE #ifndef SINGLENOZZLE
target_temperature[extruder] = celsius; target_temperature[extruder] = celsius;
#else #else
if (extruder == active_extruder) {
target_temperature[0] = celsius; target_temperature[0] = celsius;
}
#endif #endif
} }
FORCE_INLINE void setTargetBed(const float &celsius) { target_temperature_bed = celsius; } FORCE_INLINE void setTargetBed(const float &celsius) { target_temperature_bed = celsius; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment