瀏覽代碼

use pthread default priority for Mercury

Philippe G 3 年之前
父節點
當前提交
c68919d2d1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/spotify/Shim.cpp

+ 1 - 1
components/spotify/Shim.cpp

@@ -189,7 +189,7 @@ struct cspot_s* cspot_create(const char *name, cspot_cmd_cb_t cmd_cb, cspot_data
 	cspot.cHandler = cmd_cb;
 	cspot.dHandler = data_cb;
 	strncpy(cspot.name, name, sizeof(cspot.name) - 1);
-    cspot.TaskHandle = xTaskCreateStatic(&cspotTask, "cspot", CSPOT_STACK_SIZE, NULL, ESP_TASK_PRIO_MIN + 1, xStack, &xTaskBuffer);
+    cspot.TaskHandle = xTaskCreateStatic(&cspotTask, "cspot", CSPOT_STACK_SIZE, NULL, CONFIG_ESP32_PTHREAD_TASK_PRIO_DEFAULT, xStack, &xTaskBuffer);
 	
 	return &cspot;
 }