Merge pull request #4097 from thinkyhead/rc_fil_runout_cleanup

FIL_RUNOUT_INVERTING false by default
This commit is contained in:
Scott Lahteine
2016-06-19 19:46:14 -07:00
committed by GitHub
25 changed files with 28 additions and 28 deletions

View File

@@ -689,9 +689,9 @@ void setup_killpin() {
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
void setup_filrunoutpin() {
pinMode(FILRUNOUT_PIN, INPUT);
pinMode(FIL_RUNOUT_PIN, INPUT);
#if ENABLED(ENDSTOPPULLUP_FIL_RUNOUT)
WRITE(FILRUNOUT_PIN, HIGH);
WRITE(FIL_RUNOUT_PIN, HIGH);
#endif
}
@@ -8167,7 +8167,7 @@ void idle(
void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
#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();
#endif