Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjjjjjjj committed Dec 9, 2024
1 parent 9bd0397 commit c935e0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
3 changes: 2 additions & 1 deletion radio/src/opentx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
18 changes: 0 additions & 18 deletions radio/src/targets/flysky/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c935e0b

Please sign in to comment.