Skip to content

Commit

Permalink
Remove unused queues
Browse files Browse the repository at this point in the history
  • Loading branch information
laszloh committed Nov 13, 2023
1 parent f8c7844 commit 21d3617
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/AudioPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <esp_task_wdt.h>
#include <freertos/task.h>
#include <mutex>

#define AUDIOPLAYER_VOLUME_MAX 21u
#define AUDIOPLAYER_VOLUME_MIN 0u
Expand Down
7 changes: 0 additions & 7 deletions src/Queues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "Rfid.h"

QueueHandle_t gVolumeQueue;
QueueHandle_t gTrackQueue;
QueueHandle_t gTrackControlQueue;
QueueHandle_t gRfidCardQueue;

Expand All @@ -25,10 +24,4 @@ void Queues_Init(void) {
if (gTrackControlQueue == NULL) {
Log_Println(unableToCreateMgmtQ, LOGLEVEL_ERROR);
}

char **playlistArray;
gTrackQueue = xQueueCreate(1, sizeof(playlistArray));
if (gTrackQueue == NULL) {
Log_Println(unableToCreatePlayQ, LOGLEVEL_ERROR);
}
}
2 changes: 1 addition & 1 deletion src/Queues.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ extern QueueHandle_t gVolumeQueue;
extern QueueHandle_t gTrackControlQueue;
extern QueueHandle_t gRfidCardQueue;

void Queues_Init(void);
void Queues_Init(void);

0 comments on commit 21d3617

Please sign in to comment.