Fix button enum
This commit is contained in:
parent
d9676eff25
commit
c07a5f396d
|
|
@ -21,9 +21,9 @@ enum class ButtonOperations : uint8_t {
|
|||
|
||||
/// Button codes + extended actions performed on the printer's side
|
||||
enum Buttons : uint8_t {
|
||||
Left = 0,
|
||||
Right = 0,
|
||||
Middle,
|
||||
Right,
|
||||
Left,
|
||||
|
||||
// performed on the printer's side
|
||||
RestartMMU,
|
||||
|
|
|
|||
|
|
@ -238,6 +238,7 @@ StepStatus Command::Step() {
|
|||
// The user pushed a button on the MMU. Save it, do what we need to do
|
||||
// to prepare, then pass it back to the MMU so it can work its magic.
|
||||
logic->buttonCode = static_cast<Buttons>(logic->rsp.paramValue);
|
||||
SendAndUpdateFilamentSensor();
|
||||
return ButtonPushed;
|
||||
case ResponseMsgParamCodes::Finished:
|
||||
logic->progressCode = ProgressCode::OK;
|
||||
|
|
|
|||
Loading…
Reference in New Issue