fix: compilation without audio or modules (#5103)

This commit is contained in:
Raphael Coeffic
2024-06-02 15:31:11 +10:00
committed by GitHub
parent d45450921d
commit d6c6ea1f23
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -669,7 +669,7 @@ void playModelName();
#define AUDIO_FLUSH() audioQueue.flush()
#endif
#if defined(SDCARD) & defined(AUDIO)
#if defined(SDCARD) && defined(AUDIO)
extern tmr10ms_t timeAutomaticPromptsSilence;
void playModelEvent(uint8_t category, uint8_t index, event_t event=0);
#define PLAY_PHASE_OFF(phase) playModelEvent(PHASE_AUDIO_CATEGORY, phase, AUDIO_EVENT_OFF)
+2
View File
@@ -178,6 +178,8 @@ const uint8_t CROSSFIRE_FRAME_PERIODS[] = {
#define CROSSFIRE_PERIOD(module) INT_CROSSFIRE_PERIOD
#elif defined(HARDWARE_EXTERNAL_MODULE)
#define CROSSFIRE_PERIOD(module) EXT_CROSSFIRE_PERIOD
#else
#define CROSSFIRE_PERIOD(module) 4000
#endif
#define CROSSFIRE_TELEM_MIRROR_BAUDRATE 115200