From 23fb99f7a971e8d3211427bd16ca60313e46c264 Mon Sep 17 00:00:00 2001 From: Martin ROGER Date: Fri, 20 Feb 2026 23:32:25 +0100 Subject: [PATCH 1/3] Local library testing configs --- platformio.ini | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 980b5c1..06fa6a5 100644 --- a/platformio.ini +++ b/platformio.ini @@ -12,7 +12,7 @@ lib_deps = https://github.com/pschatzmann/ESP32-A2DP.git#v1.8.8 https://github.com/pschatzmann/arduino-audio-tools.git#v1.2.0 https://github.com/pschatzmann/arduino-audio-driver.git#v0.1.4 - https://github.com/martinroger/espod.git + ;https://github.com/martinroger/espod.git monitor_filters = esp32_exception_decoder monitor_speed = 115200 @@ -22,6 +22,9 @@ build_flags = -D CORE_DEBUG_LEVEL=2 ; -D INVERT_LED_LOGIC board = nodemcu-32s +lib_deps = + ${env.lib_deps} + https://github.com/martinroger/espod.git lib_ignore = audio-driver [env:a1sMini] @@ -42,6 +45,9 @@ build_flags = -D PROCESS_INTERVAL_MS=7 -D TX_INTERVAL_MS=10 -D TIMER_INTERVAL_MS=2 +lib_deps = + ${env.lib_deps} + ../espod [env:AiO-DAC] board = AiODAC_8MB @@ -57,8 +63,35 @@ build_flags = -D LED_BUILTIN=18 -D UART1_RX=19 -D UART1_TX=21 +lib_deps = + ${env.lib_deps} + https://github.com/martinroger/espod.git lib_ignore = audio-driver +; For local development only + +[env:loc_NMCU] +extends = env:SBC_NodeMCU32S +lib_deps = + ${env.lib_deps} + ../espod + + +[env:loc_A1S] +extends = env:a1sMini +lib_deps = + ${env.lib_deps} + ../espod + + +[env:loc_AiO] +extends = env:AiO-DAC +lib_deps = + ${env.lib_deps} + ../espod + + + ; Legacy or special configurations ; [env:BluCobalt] From 8fadb9ef3b73eb22207d2063984fa6cc5f113c1b Mon Sep 17 00:00:00 2001 From: Martin ROGER Date: Fri, 20 Feb 2026 23:41:40 +0100 Subject: [PATCH 2/3] AVRC vTaskDelay suppression --- src/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 8492042..adadf98 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -108,9 +108,9 @@ bool pendingPlayReq = false; // Might use this to make sure play requests are no #ifndef PROCESS_AVRC_TASK_PRIORITY #define PROCESS_AVRC_TASK_PRIORITY 6 #endif -#ifndef AVRC_INTERVAL_MS -#define AVRC_INTERVAL_MS 5 -#endif +// #ifndef AVRC_INTERVAL_MS +// #define AVRC_INTERVAL_MS 5 +// #endif #pragma endregion #pragma region Helper Functions declaration @@ -231,8 +231,8 @@ static void processAVRCTask(void *pvParameters) PROCESS_AVRC_TASK_STACK_SIZE - minHightWaterMark); } #endif - // Check incoming metadata in queue - if (xQueueReceive(avrcMetadataQueue, &incMetadata, 0) == pdTRUE) + // Check incoming metadata in queue, block indefinitely if there is nothing + if (xQueueReceive(avrcMetadataQueue, &incMetadata, portMAX_DELAY) == pdTRUE) { // Start processing switch (incMetadata.id) @@ -259,7 +259,7 @@ static void processAVRCTask(void *pvParameters) delete[] incMetadata.payload; incMetadata.payload = nullptr; } - vTaskDelay(pdMS_TO_TICKS(AVRC_INTERVAL_MS)); + // vTaskDelay(pdMS_TO_TICKS(AVRC_INTERVAL_MS)); } } #pragma endregion From 7df9a2342fba49967ae156f4679b3a77d8d11a92 Mon Sep 17 00:00:00 2001 From: Martin ROGER Date: Sat, 21 Feb 2026 00:03:07 +0100 Subject: [PATCH 3/3] Platformio.ini version pinning --- platformio.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index 06fa6a5..d01712e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -24,7 +24,7 @@ build_flags = board = nodemcu-32s lib_deps = ${env.lib_deps} - https://github.com/martinroger/espod.git + https://github.com/martinroger/espod.git#v0.0.2 lib_ignore = audio-driver [env:a1sMini] @@ -47,7 +47,7 @@ build_flags = -D TIMER_INTERVAL_MS=2 lib_deps = ${env.lib_deps} - ../espod + https://github.com/martinroger/espod.git#v0.0.2 [env:AiO-DAC] board = AiODAC_8MB @@ -65,7 +65,7 @@ build_flags = -D UART1_TX=21 lib_deps = ${env.lib_deps} - https://github.com/martinroger/espod.git + https://github.com/martinroger/espod.git#v0.0.2 lib_ignore = audio-driver ; For local development only