From 60534738d309cd148032ce92733d961007407243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Thu, 27 Jul 2023 16:37:34 +0000 Subject: [PATCH] PFW-1522 Don't increment failure statistic on filament change --- Firmware/mmu2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/mmu2.cpp b/Firmware/mmu2.cpp index b6ead0d74..cffcf4c45 100644 --- a/Firmware/mmu2.cpp +++ b/Firmware/mmu2.cpp @@ -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