diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 0cd85be15d..3c1f7d3414 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1571,8 +1571,9 @@ void opentxResume() { // removed to avoid the double warnings (throttle, switch, etc.) // opentxStart(OPENTX_START_NO_SPLASH | OPENTX_START_NO_CALIBRATION | OPENTX_START_NO_CHECKS); - +#if defined(AUDIO) referenceSystemAudioFiles(); +#endif if (!g_eeGeneral.unexpectedShutdown) { g_eeGeneral.unexpectedShutdown = 1; diff --git a/radio/src/targets/flysky/board.h b/radio/src/targets/flysky/board.h index d45a1ac19c..fd5042d509 100644 --- a/radio/src/targets/flysky/board.h +++ b/radio/src/targets/flysky/board.h @@ -429,10 +429,6 @@ extern volatile bool pendingTelemetryPollFrame; // Audio driver void initBuzzerTimer(void); -void audioInit(void); -void audioEnd(void); -void dacStart(void); -void dacStop(void); #define VOLUME_LEVEL_MAX 23 #define VOLUME_LEVEL_DEF 12 @@ -441,15 +437,6 @@ void setScaledVolume(uint8_t volume); void setVolume(uint8_t volume); int32_t getVolume(void); #endif -void audioConsumeCurrentBuffer(); -void setSampleRate(uint32_t frequency); -void referenceSystemAudioFiles(); -#define audioDisableIrq() __disable_irq() -#define audioEnableIrq() __enable_irq() - -// Haptic driver -void hapticInit(void); -void hapticOff(void); // Second serial port driver #if defined(AUX_SERIAL_GPIO) @@ -463,7 +450,6 @@ void auxSerialSbusInit(void); void auxSerialStop(void); #endif -// Aux2 serial port driver #if defined(FLYSKY_GIMBAL) #define AUX4_SERIAL #define AUX4_SERIAL_BAUDRATE FLYSKY_HALL_BAUDRATE // 921600 @@ -476,10 +462,6 @@ void flysky_gimbal_init(); #endif #if defined(AUX3_SERIAL) -// extern uint8_t aux2SerialMode; -// #if defined __cplusplus -// void aux2SerialSetup(unsigned int baudrate, bool dma, uint16_t length = USART_WordLength_8b, uint16_t parity = USART_Parity_No, uint16_t stop = USART_StopBits_1); -// #endif void aux3SerialInit(void); void aux3SerialPutc(char c); #endif