Added configurable script for filrunout form configuration.h
This commit is contained in:
parent
7548a56f64
commit
013a09dbe6
|
@ -417,8 +417,11 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
|
||||||
// In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
|
// In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
|
||||||
// It is assumed that when logic high = filament available
|
// It is assumed that when logic high = filament available
|
||||||
// when logic low = filament ran out
|
// when logic low = filament ran out
|
||||||
//const bool FIL_RUNOUT_INVERTING = true; // Should be uncommented and true or false should assigned
|
#ifdef FILAMENT_RUNOUT_SENSOR
|
||||||
//#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
|
const bool FIL_RUNOUT_INVERTING = true; // Should be uncommented and true or false should assigned
|
||||||
|
#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
|
||||||
|
#define FILAMENT_RUNOUT_SCRIPT "M600"
|
||||||
|
#endif
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//============================ Mesh Bed Leveling ============================
|
//============================ Mesh Bed Leveling ============================
|
||||||
|
|
|
@ -6140,10 +6140,10 @@ void kill()
|
||||||
void filrunout() {
|
void filrunout() {
|
||||||
if (!filrunoutEnqueued) {
|
if (!filrunoutEnqueued) {
|
||||||
filrunoutEnqueued = true;
|
filrunoutEnqueued = true;
|
||||||
enqueuecommand("M600");
|
enqueuecommands_P(PSTR(FILAMENT_RUNOUT_SCRIPT));
|
||||||
|
st_synchronize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void Stop() {
|
void Stop() {
|
||||||
|
|
Loading…
Reference in a new issue