mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Enable ISRs inside temperature ISR
to capture chars at UART at 250000 baud.
This commit is contained in:
parent
50059690e0
commit
912704a0d8
@ -1489,6 +1489,9 @@ void Temperature::set_current_temp_raw() {
|
|||||||
ISR(TIMER0_COMPB_vect) { Temperature::isr(); }
|
ISR(TIMER0_COMPB_vect) { Temperature::isr(); }
|
||||||
|
|
||||||
void Temperature::isr() {
|
void Temperature::isr() {
|
||||||
|
//Allow UART and stepper ISRs
|
||||||
|
CBI(TIMSK0, OCIE0B); //Disable Temperature ISR
|
||||||
|
sei();
|
||||||
|
|
||||||
static uint8_t temp_count = 0;
|
static uint8_t temp_count = 0;
|
||||||
static TempState temp_state = StartupDelay;
|
static TempState temp_state = StartupDelay;
|
||||||
@ -1940,4 +1943,6 @@ void Temperature::isr() {
|
|||||||
if (!endstop_monitor_count) endstop_monitor(); // report changes in endstop status
|
if (!endstop_monitor_count) endstop_monitor(); // report changes in endstop status
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SBI(TIMSK0, OCIE0B); //re-enable Temperature ISR
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user