From 3eb55016e4d4b142caa714e1be3ec20c805f508a Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 23 Apr 2018 22:19:54 -0500 Subject: [PATCH] Finish AVR preemptive interrupt Followup to #10501 --- Marlin/stepper.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Marlin/stepper.cpp b/Marlin/stepper.cpp index 4bd4ade692..92ad80700e 100644 --- a/Marlin/stepper.cpp +++ b/Marlin/stepper.cpp @@ -395,13 +395,6 @@ void Stepper::isr() { #define ENDSTOP_NOMINAL_OCR_VAL 3000 // Check endstops every 1.5ms to guarantee two stepper ISRs within 5ms for BLTouch #define OCR_VAL_TOLERANCE 1000 // First max delay is 2.0ms, last min delay is 0.5ms, all others 1.5ms - #if DISABLED(LIN_ADVANCE) - // Disable Timer0 ISRs and enable global ISR again to capture UART events (incoming chars) - DISABLE_TEMPERATURE_INTERRUPT(); - DISABLE_STEPPER_DRIVER_INTERRUPT(); - sei(); - #endif - #define _SPLIT(L) (ocr_val = (uint16_t)L) #if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)