Ver código fonte

Fix Dual X FRS in M600

Co-Authored-By: InsanityAutomation <insanityautomation@users.noreply.github.com>
Scott Lahteine 6 anos atrás
pai
commit
e4ee607fc8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      Marlin/src/gcode/feature/pause/M600.cpp

+ 1
- 1
Marlin/src/gcode/feature/pause/M600.cpp Ver arquivo

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

Carregando…
Cancelar
Salvar