Increment MMU error count with every new error ocurred

pull/180/head
D.R.racer 2022-06-17 06:58:57 +02:00 committed by DRracer
parent cecb659564
commit d2ba215580
1 changed files with 1 additions and 0 deletions

View File

@ -189,6 +189,7 @@ bool CommandBase::CheckToolIndex(uint8_t index) {
void CommandBase::ErrDisengagingIdler() {
if (!mi::idler.Engaged()) {
state = ProgressCode::ERRWaitingForUser;
mg::globals.IncDriveErrors();
mpu::pulley.Disable();
mui::userInput.Clear(); // remove all buffered events if any just before we wait for some input
}