mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 20:18:52 +00:00
Rename filament runout items
This commit is contained in:
parent
27b2e2e786
commit
cafa8b8ce3
@ -226,7 +226,7 @@ void kill(const char*);
|
|||||||
void Stop();
|
void Stop();
|
||||||
|
|
||||||
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
void filrunout();
|
void handle_filament_runout();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -446,7 +446,7 @@ static uint8_t target_extruder;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
static bool filrunoutEnqueued = false;
|
static bool filament_ran_out = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static bool send_ok[BUFSIZE];
|
static bool send_ok[BUFSIZE];
|
||||||
@ -6105,7 +6105,7 @@ inline void gcode_M503() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
filrunoutEnqueued = false;
|
filament_ran_out = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -7741,7 +7741,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
|
|||||||
|
|
||||||
#if HAS_FILRUNOUT
|
#if HAS_FILRUNOUT
|
||||||
if (IS_SD_PRINTING && !(READ(FILRUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
|
if (IS_SD_PRINTING && !(READ(FILRUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
|
||||||
filrunout();
|
handle_filament_runout();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (commands_in_queue < BUFSIZE) get_available_commands();
|
if (commands_in_queue < BUFSIZE) get_available_commands();
|
||||||
@ -7924,9 +7924,9 @@ void kill(const char* lcd_msg) {
|
|||||||
|
|
||||||
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
|
|
||||||
void filrunout() {
|
void handle_filament_runout() {
|
||||||
if (!filrunoutEnqueued) {
|
if (!filament_ran_out) {
|
||||||
filrunoutEnqueued = true;
|
filament_ran_out = true;
|
||||||
enqueue_and_echo_commands_P(PSTR(FILAMENT_RUNOUT_SCRIPT));
|
enqueue_and_echo_commands_P(PSTR(FILAMENT_RUNOUT_SCRIPT));
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user