|
|
@ -689,9 +689,9 @@ void setup_killpin() {
|
|
|
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
|
|
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
|
|
|
|
|
|
|
|
|
|
|
void setup_filrunoutpin() {
|
|
|
|
void setup_filrunoutpin() {
|
|
|
|
pinMode(FILRUNOUT_PIN, INPUT);
|
|
|
|
pinMode(FIL_RUNOUT_PIN, INPUT);
|
|
|
|
#if ENABLED(ENDSTOPPULLUP_FIL_RUNOUT)
|
|
|
|
#if ENABLED(ENDSTOPPULLUP_FIL_RUNOUT)
|
|
|
|
WRITE(FILRUNOUT_PIN, HIGH);
|
|
|
|
WRITE(FIL_RUNOUT_PIN, HIGH);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -8167,7 +8167,7 @@ void idle(
|
|
|
|
void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
|
|
|
|
void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
|
|
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
|
|
|
if (IS_SD_PRINTING && !(READ(FILRUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
|
|
|
|
if (IS_SD_PRINTING && !(READ(FIL_RUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
|
|
|
|
handle_filament_runout();
|
|
|
|
handle_filament_runout();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|