From e34ed479ef86a763d249644a21ce974002a31cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Fri, 3 Feb 2023 17:25:26 +0000 Subject: [PATCH] PFW-831 Add single buzzer beep when an MMU error screen is shown for the first time If the user has the sound settings set to 'Silent' then this beep should be silent Change in memory: Flash: +4 bytes SRAM: 0 bytes --- Firmware/mmu2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Firmware/mmu2.cpp b/Firmware/mmu2.cpp index fa6c25d0c..7192652bd 100644 --- a/Firmware/mmu2.cpp +++ b/Firmware/mmu2.cpp @@ -911,6 +911,9 @@ void MMU2::ReportError(ErrorCode ec, ErrorSource res) { // or if 'Retry' operation is not available // raise the MMU error sceen and wait for user input ReportErrorHook((CommandInProgress)logic.CommandInProgress(), (uint16_t)ec, uint8_t(lastErrorSource)); + + // Beep when error screen is shown for the first time + MakeSound(Prompt); } static_assert(mmu2Magic[0] == 'M'