From b46dfa1a97f104f89dee0f1f5717686bc6fd1d37 Mon Sep 17 00:00:00 2001 From: euquiq <31453004+euquiq@users.noreply.github.com> Date: Sat, 20 Jun 2020 11:44:31 -0300 Subject: [PATCH] Update audio.cpp Missing bit from last PR, when a request for stopping audio, now we power down the corresponding audio output channel. --- firmware/application/audio.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/application/audio.cpp b/firmware/application/audio.cpp index 852ea757..88f65859 100644 --- a/firmware/application/audio.cpp +++ b/firmware/application/audio.cpp @@ -141,7 +141,11 @@ void start() { } void stop() { - mute(); + //mute(); //Now it depends on speaker mode + if (portapack::speaker_mode) + speaker_mute(); + else + mute(); //Mute headphones i2s::i2s0::tx_stop(); } -- GitLab