From 912704a0d85fdcdbe4f9783a9e007f6e83c11dab Mon Sep 17 00:00:00 2001 From: Sebastianv650 Date: Sun, 20 Nov 2016 18:17:42 +0100 Subject: [PATCH] Enable ISRs inside temperature ISR to capture chars at UART at 250000 baud. --- Marlin/temperature.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index f01c0862b..4895d1da9 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -1489,6 +1489,9 @@ void Temperature::set_current_temp_raw() { ISR(TIMER0_COMPB_vect) { Temperature::isr(); } void Temperature::isr() { + //Allow UART and stepper ISRs + CBI(TIMSK0, OCIE0B); //Disable Temperature ISR + sei(); static uint8_t temp_count = 0; static TempState temp_state = StartupDelay; @@ -1940,4 +1943,6 @@ void Temperature::isr() { if (!endstop_monitor_count) endstop_monitor(); // report changes in endstop status } #endif + + SBI(TIMSK0, OCIE0B); //re-enable Temperature ISR }