fix: x10 Express boot freeze and bluetooth lockup (#3349)

* Fix attempt for boot issue

* fix: reset BT usart context after de-init
This commit is contained in:
Raphael Coeffic
2023-03-26 11:07:56 +10:00
committed by GitHub
parent d0b95e0a5b
commit 8560c1f6bf
5 changed files with 26 additions and 2 deletions
+12 -2
View File
@@ -21,6 +21,7 @@
#include "opentx.h"
#include "timers_driver.h"
#include "tasks/mixer_task.h"
#if defined(USBJ_EX)
#include "usb_joystick.h"
@@ -60,7 +61,10 @@ void preModelLoad()
logsClose();
#endif
pulsesStop();
if (mixerTaskStarted()) {
pulsesStop();
}
stopTrainer();
#if defined(COLORLCD)
deleteCustomScreens();
@@ -182,7 +186,13 @@ void postModelLoad(bool alarms)
PLAY_MODEL_NAME();
}
#endif
pulsesStart();
// Mixer should only be restarted
// if we are switching between models,
// not on first boot (started later on)
if (mixerTaskStarted()) {
pulsesStart();
}
#if defined(SDCARD)
referenceModelAudioFiles();