fix: compilation without audio or modules (#5103)
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user