Add idle_no_sleep

This commit is contained in:
Scott Lahteine
2020-02-27 06:34:48 -06:00
parent e5d39063a2
commit 77b82d300a
3 changed files with 18 additions and 31 deletions

View File

@@ -40,10 +40,18 @@ void stop();
void idle(
#if ENABLED(ADVANCED_PAUSE_FEATURE)
bool no_stepper_sleep = false // pass true to keep steppers from disabling on timeout
bool no_stepper_sleep=false // Pass true to keep steppers from timing out
#endif
);
inline void idle_no_sleep() {
idle(
#if ENABLED(ADVANCED_PAUSE_FEATURE)
true
#endif
);
}
#if ENABLED(EXPERIMENTAL_I2CBUS)
#include "feature/twibus.h"
extern TWIBus i2c;