Browse Source

Fixing Bluetooth-mode

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

20
src/AudioPlayer.cpp

@ -98,15 +98,17 @@ 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();
xTaskCreatePinnedToCore(
AudioPlayer_Task, /* Function to implement the task */
"mp3play", /* Name of the task */
4000, /* Stack size in words */
NULL, /* Task input parameter */
2 | portPRIVILEGE_BIT, /* Priority of the task */
NULL, /* Task handle. */
1 /* Core where the task should run */
);
if (System_GetOperationMode() == OPMODE_NORMAL) { // Don't start audio-task in BT-mode!
xTaskCreatePinnedToCore(
AudioPlayer_Task, /* Function to implement the task */
"mp3play", /* Name of the task */
4000, /* Stack size in words */
NULL, /* Task input parameter */
2 | portPRIVILEGE_BIT, /* Priority of the task */
NULL, /* Task handle. */
1 /* Core where the task should run */
);
}
} }
void AudioPlayer_Cyclic(void) { void AudioPlayer_Cyclic(void) {

Loading…
Cancel
Save