Automatically reset stepper timeout in manage_inactivity
Any code that adds moves to the planner can skip resetting the stepper timeout. We can let `idle` / `manage_inactivity` reset the timer whenever it detects any moves in the planner.
This commit is contained in:
parent
9e987e4971
commit
647c04def8
5 changed files with 37 additions and 53 deletions
|
|
@ -207,8 +207,8 @@ void clear_command_queue();
|
|||
#endif
|
||||
#endif
|
||||
|
||||
extern millis_t previous_cmd_ms;
|
||||
inline void refresh_cmd_timeout() { previous_cmd_ms = millis(); }
|
||||
extern millis_t previous_move_ms;
|
||||
inline void reset_stepper_timeout() { previous_move_ms = millis(); }
|
||||
|
||||
/**
|
||||
* Feedrate scaling and conversion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue