Browse Source

Fixing Bluetooth-mode

master
Torsten Stauder 4 years ago
parent
commit
ab46af152f
  1. 2
      src/AudioPlayer.cpp

2
src/AudioPlayer.cpp

@ -98,6 +98,7 @@ void AudioPlayer_Init(void) {
// Adjust volume depending on headphone is connected and volume-adjustment is enabled // Adjust volume depending on headphone is connected and volume-adjustment is enabled
AudioPlayer_SetupVolume(); AudioPlayer_SetupVolume();
if (System_GetOperationMode() == OPMODE_NORMAL) { // Don't start audio-task in BT-mode!
xTaskCreatePinnedToCore( xTaskCreatePinnedToCore(
AudioPlayer_Task, /* Function to implement the task */ AudioPlayer_Task, /* Function to implement the task */
"mp3play", /* Name of the task */ "mp3play", /* Name of the task */
@ -107,6 +108,7 @@ void AudioPlayer_Init(void) {
NULL, /* Task handle. */ NULL, /* Task handle. */
1 /* Core where the task should run */ 1 /* Core where the task should run */
); );
}
} }
void AudioPlayer_Cyclic(void) { void AudioPlayer_Cyclic(void) {

Loading…
Cancel
Save