tick() => isr() to spotlight interrupt-time

This commit is contained in:
Scott Lahteine
2021-04-08 15:43:16 -05:00
parent 1114bdbb04
commit 6ab7baa413
3 changed files with 8 additions and 10 deletions

View File

@ -885,11 +885,9 @@ class Planner {
// Wait for moves to finish and disable all steppers
static void finish_and_disable();
// Periodic tick to handle cleaning timeouts
// Periodic handler to manage the cleaning buffer counter
// Called from the Temperature ISR at ~1kHz
static void tick() {
if (cleaning_buffer_counter) --cleaning_buffer_counter;
}
static void isr() { if (cleaning_buffer_counter) --cleaning_buffer_counter; }
/**
* Does the buffer have any blocks queued?