Browse Source

Fix Dual X FRS in M600

Co-Authored-By: InsanityAutomation <insanityautomation@users.noreply.github.com>
pull/1/head
Scott Lahteine 6 years ago
parent
commit
e4ee607fc8
  1. 2
      Marlin/src/gcode/feature/pause/M600.cpp

2
Marlin/src/gcode/feature/pause/M600.cpp

@ -60,7 +60,7 @@ void GcodeSuite::M600() {
int8_t DXC_ext = target_extruder; int8_t DXC_ext = target_extruder;
if (!parser.seen('T')) { // If no tool index is specified, M600 was (probably) sent in response to filament runout. if (!parser.seen('T')) { // If no tool index is specified, M600 was (probably) sent in response to filament runout.
// In this case, for duplicating modes set DXC_ext to the extruder that ran out. // In this case, for duplicating modes set DXC_ext to the extruder that ran out.
#if ENABLED(FILAMENT_RUNOUT_SENSOR) #if ENABLED(FILAMENT_RUNOUT_SENSOR) && NUM_RUNOUT_SENSORS > 1
if (dxc_is_duplicating()) if (dxc_is_duplicating())
DXC_ext = (READ(FIL_RUNOUT2_PIN) == FIL_RUNOUT_INVERTING) ? 1 : 0; DXC_ext = (READ(FIL_RUNOUT2_PIN) == FIL_RUNOUT_INVERTING) ? 1 : 0;
#else #else

Loading…
Cancel
Save