Skip to content

Commit

Permalink
Bug fix in 0.8.4 when changing priority.
Browse files Browse the repository at this point in the history
  • Loading branch information
mongonta0716 committed Jul 13, 2023
1 parent 86d52a4 commit 2c4bf13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"license": "MIT",
"dependencies": {
},
"version": "0.8.4",
"version": "0.8.5",
"frameworks": "arduino",
"platforms": "espressif32"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=M5Stack_Avatar
version=0.8.4
version=0.8.5
author=Shinya Ishikawa
maintainer=Shinya Ishikawa<[email protected]>
sentence=Yet another avatar module for M5Stack
Expand Down
8 changes: 4 additions & 4 deletions src/Avatar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -133,15 +133,15 @@ 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);

xTaskCreateUniversal(facialLoop, /* Function to implement the task */
"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);
}
Expand Down

0 comments on commit 2c4bf13

Please sign in to comment.