From 7b378d36cc73e71ec05579035af8ca526ba38e58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Sun, 6 Nov 2022 13:29:01 +0100 Subject: [PATCH] try to make cppcheck happy again --- src/modules/esp32/AudioModule.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/esp32/AudioModule.h b/src/modules/esp32/AudioModule.h index fcd5d169e..b67f83c8b 100644 --- a/src/modules/esp32/AudioModule.h +++ b/src/modules/esp32/AudioModule.h @@ -11,8 +11,6 @@ #include #include #include -#else -typedef int FastAudioFIFO; #endif #define ADC_BUFFER_SIZE 320 // 40ms of voice in 8KHz sampling frequency @@ -20,6 +18,7 @@ typedef int FastAudioFIFO; class AudioModule : public SinglePortModule, private concurrency::OSThread { +#if defined(ARCH_ESP32) && defined(USE_SX1280) bool firstTime = 1; hw_timer_t* adcTimer = NULL; uint16_t adc_buffer[ADC_BUFFER_SIZE]; @@ -62,6 +61,7 @@ class AudioModule : public SinglePortModule, private concurrency::OSThread * @return ProcessMessage::STOP if you've guaranteed you've handled this message and no other handlers should be considered for it */ virtual ProcessMessage handleReceived(const MeshPacket &mp) override; +#endif }; extern AudioModule *audioModule;