fix(cpn): simulator crash if attempts to play bye.wav on exit (#7085)
This commit is contained in:
@@ -1130,7 +1130,11 @@ void edgeTxClose(uint8_t shutdown)
|
|||||||
|
|
||||||
if (shutdown) {
|
if (shutdown) {
|
||||||
pulsesStop();
|
pulsesStop();
|
||||||
|
#if !defined(SIMU)
|
||||||
|
// Audio task has been stopped so this will not play
|
||||||
|
// when closing the simulator
|
||||||
AUDIO_BYE();
|
AUDIO_BYE();
|
||||||
|
#endif
|
||||||
// TODO needed? telemetryEnd();
|
// TODO needed? telemetryEnd();
|
||||||
#if defined(HAPTIC)
|
#if defined(HAPTIC)
|
||||||
hapticOff();
|
hapticOff();
|
||||||
|
|||||||
Reference in New Issue
Block a user