mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 00:05:17 +03:00
All alerts are TADA :)
This commit is contained in:
parent
7e0a30c08f
commit
444fc85710
1 changed files with 2 additions and 2 deletions
|
@ -267,7 +267,7 @@ void referenceModelAudioFiles()
|
|||
for (int i=0; i<NUM_CSW && !found; i++) {
|
||||
for (int event=0; event<2; event++) {
|
||||
getLogicalSwitchAudioFile(filename, i, event);
|
||||
if (isFileAvailable(filename)) {
|
||||
if (!strcmp(filename, fn)) {
|
||||
sdAvailableLogicalSwitchAudioFiles |= MASK_LOGICAL_SWITCH_AUDIO_FILE(i, event);
|
||||
found = true;
|
||||
break;
|
||||
|
@ -289,7 +289,7 @@ bool isAudioFileReferenced(uint32_t i, char * filename)
|
|||
#endif
|
||||
|
||||
if (category == SYSTEM_AUDIO_CATEGORY) {
|
||||
if (sdAvailableSystemAudioFiles & MASK_SYSTEM_AUDIO_FILE(index)) {
|
||||
if (sdAvailableSystemAudioFiles & MASK_SYSTEM_AUDIO_FILE(event)) {
|
||||
getSystemAudioFile(filename, index);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue