Followup to new endstop interrupts feature

- Fix typos, verbiage
- Fix naming of `setup_endstop_interrupts`
- Some formatting, indentation, spacing
This commit is contained in:
Scott Lahteine
2016-11-18 21:53:45 -06:00
parent 832fe284b4
commit eb120e518c
25 changed files with 215 additions and 217 deletions

View File

@ -378,19 +378,21 @@ void Stepper::isr() {
}
// Update endstops state, if enabled
if (endstops.enabled
if ((endstops.enabled
#if HAS_BED_PROBE
|| endstops.z_probe_enabled
#endif
)
#if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
if(e_hit) {
#endif
endstops.update();
#if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
)
#if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
&& e_hit
#endif
) {
endstops.update();
#if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
e_hit--;
}
#endif
#endif
}
// Take multiple steps per interrupt (For high speed moves)
bool all_steps_done = false;