Power-Loss initialization fix (#13553)

- Only save to PLR file on moves with E and X or Y
- Save to PLR after any long-ish Z downward move
This commit is contained in:
Scott Lahteine
2019-04-01 17:52:45 -05:00
committed by GitHub
parent 8b7c3eec83
commit a0a5c31c05
2 changed files with 6 additions and 3 deletions

View File

@ -105,7 +105,7 @@ 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[Z_AXIS]) && IS_SD_PRINTING()) recovery.save();
if (seen[E_AXIS] && (seen[X_AXIS] || seen[Y_AXIS]) && IS_SD_PRINTING()) recovery.save();
#endif
if (parser.linearval('F') > 0)