Disable axis when StallGuard detected
to allow the user to remove whatever is blocking the axispull/172/head
parent
a9200f73f5
commit
934c2f160b
|
|
@ -87,6 +87,7 @@ bool CommandBase::WaitForOneModuleErrorRecovery(ErrorCode ec, modules::motion::M
|
|||
error = ec;
|
||||
// mui::userInput.Clear(); // @@TODO
|
||||
state = ProgressCode::ERRWaitingForUser; // such a situation always requires user's attention -> let the printer display an error screen
|
||||
mm::motion.Disable(m.Axis());
|
||||
}
|
||||
|
||||
// are we already recovering an error - that would mean we got another one
|
||||
|
|
|
|||
|
|
@ -120,12 +120,12 @@ bool SimulateFailedMoveFirstTime(logic::CommandBase &cb) {
|
|||
|
||||
REQUIRE(cb.Error() == ErrorCode::MOVE_SELECTOR_FAILED);
|
||||
REQUIRE(cb.State() == ProgressCode::ERRWaitingForUser);
|
||||
// REQUIRE_FALSE(mm::motion.Enabled(mm::Selector));
|
||||
REQUIRE_FALSE(mm::motion.Enabled(mm::Selector));
|
||||
|
||||
// do a few steps before pushing the button
|
||||
WhileTopState(cb, ProgressCode::ERRWaitingForUser, 5);
|
||||
|
||||
// REQUIRE_FALSE(mm::motion.Enabled(mm::Selector));
|
||||
REQUIRE_FALSE(mm::motion.Enabled(mm::Selector));
|
||||
|
||||
PressButtonAndDebounce(cb, mb::Middle);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue