From 2c4bf135af1af86cba058130d8c31ce2cfac8f9c Mon Sep 17 00:00:00 2001 From: Takao Akaki Date: Thu, 13 Jul 2023 22:15:00 +0900 Subject: [PATCH] Bug fix in 0.8.4 when changing priority. --- library.json | 2 +- library.properties | 2 +- src/Avatar.cpp | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/library.json b/library.json index 4a16a54..2e1bb15 100644 --- a/library.json +++ b/library.json @@ -17,7 +17,7 @@ "license": "MIT", "dependencies": { }, - "version": "0.8.4", + "version": "0.8.5", "frameworks": "arduino", "platforms": "espressif32" } diff --git a/library.properties b/library.properties index f0400c3..7ad4e6d 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=M5Stack_Avatar -version=0.8.4 +version=0.8.5 author=Shinya Ishikawa maintainer=Shinya Ishikawa sentence=Yet another avatar module for M5Stack diff --git a/src/Avatar.cpp b/src/Avatar.cpp index 88912e0..8dcd15e 100644 --- a/src/Avatar.cpp +++ b/src/Avatar.cpp @@ -4,7 +4,7 @@ #include "Avatar.h" namespace m5avatar { -const uint32_t DEFAULT_STACK_SIZE = 1024; +const uint32_t DEFAULT_STACK_SIZE = 2048; unsigned int seed = 0; @@ -94,7 +94,7 @@ void Avatar::addTask(TaskFunction_t f, const char* name) { name, /* Name of the task */ DEFAULT_STACK_SIZE, /* Stack size in words */ ctx, /* Task input parameter */ - 4, /* P2014riority of the task */ + 3, /* P2014riority of the task */ NULL, /* Task handle. */ APP_CPU_NUM); // xTaskCreatePinnedToCore(f, /* Function to implement the task */ @@ -133,7 +133,7 @@ void Avatar::start(int colorDepth) { "drawLoop", /* Name of the task */ 2048, /* Stack size in words */ ctx, /* Task input parameter */ - 2, /* Priority of the task */ + 1, /* Priority of the task */ &drawTaskHandle, /* Task handle. */ APP_CPU_NUM); @@ -141,7 +141,7 @@ void Avatar::start(int colorDepth) { "facialLoop", /* Name of the task */ 1024, /* Stack size in words */ ctx, /* Task input parameter */ - 3, /* Priority of the task */ + 2, /* Priority of the task */ NULL, /* Task handle. */ APP_CPU_NUM); }