PFW-1527 FILAMENT_EJECTED should not increment fail statistic

Change in memory:
Flash: +8 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-06-04 10:51:45 +00:00 committed by DRracer
parent 434386e6cc
commit 4abdb0225d
1 changed files with 1 additions and 1 deletions

View File

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