diff --git a/src/SnapConfig.h b/src/SnapConfig.h index 0147708..bf6d67e 100644 --- a/src/SnapConfig.h +++ b/src/SnapConfig.h @@ -63,3 +63,7 @@ #ifndef RTOS_STACK_SIZE # define RTOS_STACK_SIZE 10 * 1024 #endif + +#ifndef RTOS_TASK_PRIORITY +# define RTOS_TASK_PRIORITY 2 +#endif \ No newline at end of file diff --git a/src/api/SnapProcessorRTOS.h b/src/api/SnapProcessorRTOS.h index bc268f0..6169709 100644 --- a/src/api/SnapProcessorRTOS.h +++ b/src/api/SnapProcessorRTOS.h @@ -41,7 +41,7 @@ class SnapProcessorRTOS : public SnapProcessor { protected: const char *TAG = "SnapProcessorRTOS"; - cpp_freertos::Task task{"output", RTOS_STACK_SIZE, 1, task_copy}; + cpp_freertos::Task task{"output", RTOS_STACK_SIZE, RTOS_TASK_PRIORITY, task_copy}; cpp_freertos::Queue size_queue{RTOS_MAX_QUEUE_ENTRY_COUNT, sizeof(size_t)}; audio_tools::SynchronizedBufferRTOS buffer{0}; // size defined in constructor bool task_started = false;