Skip to content

Commit

Permalink
Fix 1st layer calibration being stuck when using MMU with unloaded fi…
Browse files Browse the repository at this point in the history
…lament

BFW-5781
  • Loading branch information
danopernis committed Jul 16, 2024
1 parent 86c2e3e commit 3f03d21
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/common/selftest/selftest_firstlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,14 @@ LoopResult CSelftestPart_FirstLayer::stateFilamentLoadEnqueueGcode() {
}

// load, no return no cooldown
return enqueueGcode("M701 W0") ? LoopResult::RunNext : LoopResult::RunCurrent;
// Note: We need to specify slot here, otherwise this fails when using
// MMU without loaded filament. We just choose the first slot.
// When another slot is required, it can be preloaded before
// entering calibration. When not using MMU, P is ignored.
// FIXME It would be nice to present option to let user choose slot.
// That would be much easier to implement after we transition
// to new g-code style selftests, which we want to do at some point.
return enqueueGcode("M701 W0 P0") ? LoopResult::RunNext : LoopResult::RunCurrent;
}

LoopResult CSelftestPart_FirstLayer::stateFilamentLoadWaitFinished() {
Expand Down

0 comments on commit 3f03d21

Please sign in to comment.