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