Less indentation in Stepper::isr
This commit is contained in:
parent
7dec8071b2
commit
cc639d7d9c
|
@ -357,11 +357,10 @@ void Stepper::isr() {
|
|||
}
|
||||
else {
|
||||
OCR1A = 2000; // 1kHz.
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (current_block) {
|
||||
|
||||
// Update endstops state, if enabled
|
||||
if (endstops.enabled
|
||||
#if HAS_BED_PROBE
|
||||
|
@ -668,7 +667,6 @@ void Stepper::isr() {
|
|||
planner.discard_current_block();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if ENABLED(ADVANCE) || ENABLED(LIN_ADVANCE)
|
||||
|
||||
|
|
Loading…
Reference in a new issue