mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-06-26 17:00:41 +00:00
[2.0.x] Enhancements to FILAMENT_RUNOUT_SENSOR (#12069)
- Added FILAMENT_RUNOUT_DISTANCE_MM option - Added FILAMENT_MOTION_SENSOR option
This commit is contained in:
parent
cce4931342
commit
056561df93
84 changed files with 1233 additions and 90 deletions
Marlin/src/module
|
@ -109,6 +109,10 @@
|
|||
|
||||
Stepper stepper; // Singleton
|
||||
|
||||
#if FILAMENT_RUNOUT_DISTANCE_MM > 0
|
||||
#include "../feature/runout.h"
|
||||
#endif
|
||||
|
||||
// public:
|
||||
|
||||
#if ENABLED(X_DUAL_ENDSTOPS) || ENABLED(Y_DUAL_ENDSTOPS) || Z_MULTI_ENDSTOPS
|
||||
|
@ -1473,6 +1477,9 @@ uint32_t Stepper::stepper_block_phase_isr() {
|
|||
|
||||
// If current block is finished, reset pointer
|
||||
if (step_events_completed >= step_event_count) {
|
||||
#if FILAMENT_RUNOUT_DISTANCE_MM > 0
|
||||
runout.block_complete(current_block);
|
||||
#endif
|
||||
axis_did_move = 0;
|
||||
current_block = NULL;
|
||||
planner.discard_current_block();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue