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:
@@ -35,6 +35,7 @@ static RTOS_MUTEX_HANDLE mixerMutex;
|
||||
// The mixer will start in 'paused' mode
|
||||
// and start working properly once
|
||||
// mixerTaskStart() has been called.
|
||||
static bool _mixer_started = false;
|
||||
static bool _mixer_running = false;
|
||||
static bool _mixer_exit = false;
|
||||
|
||||
@@ -61,8 +62,14 @@ void mixerTaskInit()
|
||||
MIXER_STACK_SIZE, MIXER_TASK_PRIO);
|
||||
}
|
||||
|
||||
bool mixerTaskStarted()
|
||||
{
|
||||
return _mixer_started;
|
||||
}
|
||||
|
||||
void mixerTaskStart()
|
||||
{
|
||||
_mixer_started = true;
|
||||
_mixer_running = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,10 @@ TASK_FUNCTION(mixerTask);
|
||||
// init, create and start the OS task itself
|
||||
void mixerTaskInit();
|
||||
|
||||
// return true if the mixer has
|
||||
// already started at least once since boot
|
||||
bool mixerTaskStarted();
|
||||
|
||||
// start the main computations
|
||||
// and pushing channels out
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user