-
Notifications
You must be signed in to change notification settings - Fork 10
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
next #315
next #315
Conversation
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.
Code review by ChatGPT
@@ -10,7 +10,7 @@ | |||
#include <hw_id.h> | |||
|
|||
#define MODULE main | |||
#include "module_state_event.h" | |||
#include "module_state_event" | |||
|
|||
#include <zephyr/logging/log.h> | |||
LOG_MODULE_REGISTER(MODULE); |
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.
- The header file "module_state_event.h" has been changed to "module_state_event", which may lead to issues if the new name does not correspond to an existing file.
@@ -94,7 +94,7 @@ void emberAfClusterInitCallback(EndpointId endpoint, ClusterId clusterId) | |||
} | |||
} | |||
|
|||
void __attribute__((weak)) emberAfAccessControlClusterInitCallback(EndpointId endpoint) | |||
void __attribute__((weak)) emberAfAccessControlClusterInitCallback(EndpointId endpoint, int source) | |||
{ | |||
// To prevent warning | |||
(void)endpoint; |
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.
- The function
emberAfClusterInitCallback
has an incorrect parameter type forsource
, it should beint source
instead ofsource int
. - The function
emberAfAccessControlClusterInitCallback
has an inconsistent parameter list compared to its previous definition, which could lead to compatibility issues.
@@ -44,6 +44,7 @@ | |||
|
|||
/**** Cluster Plugins ****/ | |||
|
|||
// Use this macro to check if the server side of the Identify cluster is included | |||
// Use this macro to check if the server side of the Identify cluster is included | |||
#define ZCL_USING_IDENTIFY_CLUSTER_SERVER | |||
#define MATTER_DM_PLUGIN_IDENTIFY_SERVER |
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.
- The pragma directive was incorrectly changed from
#pragma once
to#pragma twice
, which may lead to multiple inclusions of the header file. - There is a duplicate comment regarding checking if the server side of the Identify cluster is included.
No description provided.