Improve FILAMENT_RUNOUT_SENSOR, FILRUNOUT_PIN

This commit is contained in:
Scott Lahteine
2016-06-19 18:05:57 -07:00
parent 43ec24158e
commit add0032820
4 changed files with 26 additions and 11 deletions

View File

@@ -124,6 +124,17 @@
#endif
#endif
/**
* Filament Runout needs a pin and SD Support
*/
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
#if !HAS_FILRUNOUT
#error "FILAMENT_RUNOUT_SENSOR requires FILRUNOUT_PIN."
#elif DISABLED(SDSUPPORT)
#error "FILAMENT_RUNOUT_SENSOR requires SDSUPPORT."
#endif
#endif
/**
* Filament Change with Extruder Runout Prevention
*/