Add option to enable/disable autoretract altogether (#11904)

This commit is contained in:
Victor Tseng
2018-09-29 05:52:56 +08:00
committed by Scott Lahteine
parent ad21a4f07b
commit 93839e2f73
63 changed files with 392 additions and 197 deletions

View File

@ -58,8 +58,10 @@ public:
}
static void enable_autoretract(const bool enable) {
autoretract_enabled = enable;
refresh_autoretract();
#if ENABLED(FWRETRACT_AUTORETRACT)
autoretract_enabled = enable;
refresh_autoretract();
#endif
}
static void retract(const bool retracting