Skip to content
Snippets Groups Projects
Commit 8cf5504a authored by Tanguy Pruvot's avatar Tanguy Pruvot Committed by Scott Lahteine
Browse files

Redundant but faster recovery.enabled test (#14175)

parent c3e52255
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,8 @@ void GcodeSuite::get_destination_from_command() {
#if ENABLED(POWER_LOSS_RECOVERY)
// Only update power loss recovery on moves with E
if (seen[E_AXIS] && (seen[X_AXIS] || seen[Y_AXIS]) && IS_SD_PRINTING()) recovery.save();
if (recovery.enabled && IS_SD_PRINTING() && seen[E_AXIS] && (seen[X_AXIS] || seen[Y_AXIS]))
recovery.save();
#endif
if (parser.linearval('F') > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment