Skip to content

Commit

Permalink
Fix SPI_ENDSTOPS compile error (MarlinFirmware#14906)
Browse files Browse the repository at this point in the history
  • Loading branch information
GMagician authored and thinkyhead committed Aug 9, 2019
1 parent 2971b48 commit a7f1021
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Marlin/src/Marlin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,14 @@ void idle(
) {

#if ENABLED(SPI_ENDSTOPS)
if (endstops.tmc_spi_homing.any && ELAPSED(millis(), sg_guard_period))
if (endstops.tmc_spi_homing.any
#if ENABLED(IMPROVE_HOMING_RELIABILITY)
&& ELAPSED(millis(), sg_guard_period)
#endif
) {
for (uint8_t i = 4; i--;) // Read SGT 4 times per idle loop
if (endstops.tmc_spi_homing_check()) break;
}
#endif

#if ENABLED(MAX7219_DEBUG)
Expand Down

0 comments on commit a7f1021

Please sign in to comment.