PFW-1522 Don't increment failure statistic on filament change

This commit is contained in:
Guðni Már Gilbert 2023-07-27 16:37:34 +00:00 committed by DRracer
parent e6f05e7856
commit 60534738d3
1 changed files with 1 additions and 1 deletions

View File

@ -978,7 +978,7 @@ void MMU2::ReportError(ErrorCode ec, ErrorSource res) {
lastErrorSource = res;
LogErrorEvent_P(_O(PrusaErrorTitle(PrusaErrorCodeIndex((uint16_t)ec))));
if (ec != ErrorCode::OK && ec != ErrorCode::FILAMENT_EJECTED) {
if (ec != ErrorCode::OK && ec != ErrorCode::FILAMENT_EJECTED && ec != ErrorCode::FILAMENT_CHANGE) {
IncrementMMUFails();
// check if it is a "power" failure - we consider TMC-related errors as power failures