Check for serial roughtly in the middle of the stepper isr

This commit is contained in:
Yuri D'Elia 2019-05-25 18:39:50 +02:00
parent 0a26de1e7f
commit fa7ecfc38e

View file

@ -830,6 +830,12 @@ FORCE_INLINE void isr() {
//WRITE_NC(LOGIC_ANALYZER_CH1, false);
}
#ifdef LIN_ADVANCE
// Check for serial chars. This executes roughtly between 50-60% of the total length of the isr,
// making this spot a much better choice than checking during esteps
MSerial.checkRx();
#endif
// If current block is finished, reset pointer
if (step_events_completed.wide >= current_block->step_event_count.wide) {
#ifdef FILAMENT_SENSOR