Skip to content

Commit

Permalink
Fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
gudnimg committed Jul 10, 2022
2 parents 1ace8f6 + 85a6c81 commit b9f79ec
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Firmware/mmu2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ void MMU2::manage_response(const bool move_axes, const bool turn_off_nozzle) {
}

StepStatus MMU2::LogicStep() {
CheckUserInput(); // Process any buttons before proceeding with another MMU Query
StepStatus ss = logic.Step();
switch (ss) {
case Finished:
Expand All @@ -686,27 +687,23 @@ StepStatus MMU2::LogicStep() {
break;
case CommandError:
ReportError(logic.Error(), ErrorSourceMMU);
CheckUserInput();
break;
case CommunicationTimeout:
state = xState::Connecting;
ReportError(ErrorCode::MMU_NOT_RESPONDING, ErrorSourcePrinter);
CheckUserInput();
break;
case ProtocolError:
state = xState::Connecting;
ReportError(ErrorCode::PROTOCOL_ERROR, ErrorSourcePrinter);
CheckUserInput();
break;
case VersionMismatch:
StopKeepPowered();
ReportError(ErrorCode::VERSION_MISMATCH, ErrorSourcePrinter);
CheckUserInput();
break;
case ButtonPushed:
lastButton = logic.Button();
LogEchoEvent("MMU Button pushed");
CheckUserInput();
CheckUserInput(); // Process the button immediately
break;
default:
break;
Expand Down

0 comments on commit b9f79ec

Please sign in to comment.