-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure to queue m5stack actions to the Matter thread as needed. #15066
Make sure to queue m5stack actions to the Matter thread as needed. #15066
Conversation
PR #15066: Size comparison from 681e9b9 to ee7a746 Increases (2 builds for esp32)
Full report (43 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
@@ -99,6 +99,13 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb) | |||
void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath & path, uint8_t mask, uint8_t type, uint16_t size, | |||
uint8_t * value) | |||
{ | |||
TaskHandle_t task = xTaskGetCurrentTaskHandle(); | |||
const char * name = pcTaskGetName(task); | |||
if (!strcmp(name, "CHIP")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be if(strcmp(name, "CHIP"))
? I got the error logs when I ran all-clusters-app on esp32. Looks like this check is incorrect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Looks like :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Er, yes, this is backwards. Will create PR to fix as soon as ToT is not failing CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…roject-chip#15066) Fixes project-chip#15065 (cherry picked from commit 379d144)
…15066) (#15234) Fixes #15065 (cherry picked from commit 379d144) Co-authored-by: Boris Zbarsky <[email protected]>
Fixes #15065
Problem
Touching Matter stuff on the wrong thread.
Change overview
Use the right thread.
Testing
Used the buttons, logs showed post-attribute-change callback now running on the right thread.