File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -885,11 +885,9 @@ class Planner {
885885 // Wait for moves to finish and disable all steppers
886886 static void finish_and_disable ();
887887
888- // Periodic tick to handle cleaning timeouts
888+ // Periodic handler to manage the cleaning buffer counter
889889 // Called from the Temperature ISR at ~1kHz
890- static void tick () {
891- if (cleaning_buffer_counter) --cleaning_buffer_counter;
892- }
890+ static void isr () { if (cleaning_buffer_counter) --cleaning_buffer_counter; }
893891
894892 /* *
895893 * Does the buffer have any blocks queued?
Original file line number Diff line number Diff line change @@ -2835,12 +2835,12 @@ void Temperature::readings_ready() {
28352835 * - Step the babysteps value for each axis towards 0
28362836 * - For PINS_DEBUGGING, monitor and report endstop pins
28372837 * - For ENDSTOP_INTERRUPTS_FEATURE check endstops if flagged
2838- * - Call planner.tick to count down its "ignore" time
2838+ * - Call planner.isr to count down its "ignore" time
28392839 */
28402840HAL_TEMP_TIMER_ISR () {
28412841 HAL_timer_isr_prologue (TEMP_TIMER_NUM);
28422842
2843- Temperature::tick ();
2843+ Temperature::isr ();
28442844
28452845 HAL_timer_isr_epilogue (TEMP_TIMER_NUM);
28462846}
@@ -2879,7 +2879,7 @@ class SoftPWM {
28792879 * - Endstop polling
28802880 * - Planner clean buffer
28812881 */
2882- void Temperature::tick () {
2882+ void Temperature::isr () {
28832883
28842884 static int8_t temp_count = -1 ;
28852885 static ADCSensorState adc_sensor_state = StartupDelay;
@@ -3363,8 +3363,8 @@ void Temperature::tick() {
33633363 // Poll endstops state, if required
33643364 endstops.poll ();
33653365
3366- // Periodically call the planner timer
3367- planner.tick ();
3366+ // Periodically call the planner timer service routine
3367+ planner.isr ();
33683368}
33693369
33703370#if HAS_TEMP_SENSOR
Original file line number Diff line number Diff line change @@ -600,8 +600,8 @@ class Temperature {
600600 /* *
601601 * Called from the Temperature ISR
602602 */
603+ static void isr ();
603604 static void readings_ready ();
604- static void tick ();
605605
606606 /* *
607607 * Call periodically to manage heaters
You can’t perform that action at this time.
0 commit comments