From f2be5922157f3f21106ccc67f3ea9d1f1ed39147 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Mon, 24 Nov 2025 21:24:35 +0100 Subject: [PATCH] plugins: Oscilloscope: Fix outdated mixer frequency When Waveform mode was active, frequency changes during playback (if set to "auto", or with USB audio active) weren't picked up Change-Id: Iebec7db951312b7dacff850e9554e1d06762ab3a --- apps/plugins/oscilloscope.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c index 1f11a7c5c2..493be2f79c 100644 --- a/apps/plugins/oscilloscope.c +++ b/apps/plugins/oscilloscope.c @@ -2000,10 +2000,6 @@ static void osc_setup(void) osd_lcd_update(); #endif -#ifdef OSCILLOSCOPE_GRAPHMODE - mixer_sampr = rb->mixer_get_frequency(); -#endif - /* Turn off backlight timeout */ backlight_ignore_timeout(); @@ -2038,6 +2034,10 @@ enum plugin_status plugin_start(const void* parameter) while (!exit) { +#ifdef OSCILLOSCOPE_GRAPHMODE + if (osc.graphmode == GRAPH_WAVEFORM) + mixer_sampr = rb->mixer_get_frequency(); +#endif #ifdef USB_ENABLE_AUDIO if (rb->usb_audio_get_playing()) {