Shutdown sound - bye.wav - A little bit related to #719

This commit is contained in:
bsongis
2014-10-15 23:27:18 +02:00
parent 6839c02aba
commit 0b8963b15e
7 changed files with 52 additions and 18 deletions
+14 -1
View File
@@ -2080,6 +2080,8 @@ void opentxStart()
#if defined(CPUARM) || defined(CPUM2560)
void opentxClose()
{
AUDIO_BYE();
#if defined(FRSKY)
// TODO needed? telemetryEnd();
#endif
@@ -2090,7 +2092,6 @@ void opentxClose()
#if defined(SDCARD)
closeLogs();
sdDone();
#endif
#if defined(HAPTIC)
@@ -2130,6 +2131,18 @@ void opentxClose()
eeDirty(EE_GENERAL);
eeCheck(true);
#if defined(CPUARM)
while (IS_PLAYING(ID_PLAY_BYE)) {
CoTickDelay(10);
}
CoTickDelay(50);
#endif
#if defined(SDCARD)
sdDone();
#endif
}
#endif