Fix missing ErrorCode::RUNNING

This is needed in case we are recovering
from FINDA_FLICKERS
pull/278/head
Guðni Már Gilbert 2023-05-31 20:46:05 +00:00
parent 8c873c8a53
commit 800497f5d2
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ bool EjectFilament::Reset(uint8_t param) {
void EjectFilament::MoveSelectorAside() { void EjectFilament::MoveSelectorAside() {
state = ProgressCode::ParkingSelector; state = ProgressCode::ParkingSelector;
error = ErrorCode::RUNNING;
const uint8_t selectorParkedPos = (slot <= 2) ? 4 : 0; const uint8_t selectorParkedPos = (slot <= 2) ? 4 : 0;
if (ms::selector.MoveToSlot(selectorParkedPos) == ms::Selector::OperationResult::Refused) { if (ms::selector.MoveToSlot(selectorParkedPos) == ms::Selector::OperationResult::Refused) {
GoToErrDisengagingIdler(ErrorCode::FINDA_FLICKERS); GoToErrDisengagingIdler(ErrorCode::FINDA_FLICKERS);