From ed1e03d2e12bd4dbda684581d6a0b3190259525e Mon Sep 17 00:00:00 2001 From: 3djc Date: Mon, 7 Jul 2025 11:46:08 +0200 Subject: [PATCH] chore: remove PCBFRSKY definition (#6424) --- radio/src/audio.cpp | 12 +----------- radio/src/edgetx.cpp | 4 ---- radio/src/edgetx.h | 12 +++--------- radio/src/targets/horus/CMakeLists.txt | 2 -- radio/src/targets/stm32h7s78-dk/CMakeLists.txt | 2 +- radio/src/targets/taranis/CMakeLists.txt | 2 +- radio/src/telemetry/telemetry.cpp | 2 +- radio/src/tests/functions.cpp | 4 ---- radio/src/tests/gtests.h | 4 ---- radio/src/tests/switches.cpp | 2 -- 10 files changed, 7 insertions(+), 39 deletions(-) diff --git a/radio/src/audio.cpp b/radio/src/audio.cpp index 9d9e24873..fb659dc45 100644 --- a/radio/src/audio.cpp +++ b/radio/src/audio.cpp @@ -146,7 +146,6 @@ const char * const audioFilenames[] = { "midstck2", "midstck3", "midstck4", -#if defined(PCBFRSKY) "midpot1", "midpot2", #if defined(PCBX9E) @@ -164,11 +163,6 @@ const char * const audioFilenames[] = { #if defined(PCBX9E) "midslid3", "midslid4", -#endif -#else - "midpot1", - "midpot2", - "midpot3", #endif "mixwarn1", "mixwarn2", @@ -395,7 +389,7 @@ inline void mixSample(audio_data_t * result, int16_t sample, unsigned int fade) *result = (audio_data_t)_sat_s16(tmp); #elif AUDIO_SAMPLE_FMT == AUDIO_SAMPLE_FMT_U16 *result = (audio_data_t)_sat_u16((uint32_t)tmp); -#endif +#endif } #define RIFF_CHUNK_SIZE 12 @@ -976,15 +970,11 @@ void audioEvent(unsigned int index) case AU_POT6_MIDDLE: case AU_POT7_MIDDLE: #endif -#if defined(PCBFRSKY) case AU_SLIDER1_MIDDLE: case AU_SLIDER2_MIDDLE: #if defined(PCBX9E) case AU_SLIDER3_MIDDLE: case AU_SLIDER4_MIDDLE: -#endif -#else - case AU_POT3_MIDDLE: #endif audioQueue.playTone(BEEP_DEFAULT_FREQ + 1500, 80, 20, PLAY_NOW); break; diff --git a/radio/src/edgetx.cpp b/radio/src/edgetx.cpp index 724419ace..efcb2c7cf 100644 --- a/radio/src/edgetx.cpp +++ b/radio/src/edgetx.cpp @@ -635,7 +635,6 @@ void checkSDfreeStorage() { } } -#if defined(PCBFRSKY) || defined(PCBFLYSKY) static void checkFailsafe() { for (int i=0; i