Skip to content

Commit

Permalink
Remove unnecessary cast from endpoint-config. (#24848)
Browse files Browse the repository at this point in the history
* Remove unnecessary cast from endpoint-config.

The cast would have just covered up issues if any came up.  This way
we know our types match up.

* Regenerate generated code.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jun 26, 2023
1 parent f6b7bd8 commit 4080451
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@
// This is an array of EmberAfCluster structures.
#define ZAP_ATTRIBUTE_INDEX(index) (&generatedAttributes[index])

#define ZAP_GENERATED_COMMANDS_INDEX(index) ((chip::CommandId *) (&generatedCommands[index]))
#define ZAP_GENERATED_COMMANDS_INDEX(index) (&generatedCommands[index])

// Cluster function static arrays
#define GENERATED_FUNCTION_ARRAYS \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@
// This is an array of EmberAfCluster structures.
#define ZAP_ATTRIBUTE_INDEX(index) (&generatedAttributes[index])

#define ZAP_GENERATED_COMMANDS_INDEX(index) ((chip::CommandId *) (&generatedCommands[index]))
#define ZAP_GENERATED_COMMANDS_INDEX(index) (&generatedCommands[index])

// Cluster function static arrays
#define GENERATED_FUNCTION_ARRAYS \
Expand Down
2 changes: 1 addition & 1 deletion src/app/zap-templates/templates/app/endpoint_config.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
// This is an array of EmberAfCluster structures.
#define ZAP_ATTRIBUTE_INDEX(index) (&generatedAttributes[index])

#define ZAP_GENERATED_COMMANDS_INDEX(index) ((chip::CommandId *) (&generatedCommands[index]))
#define ZAP_GENERATED_COMMANDS_INDEX(index) (&generatedCommands[index])

// Cluster function static arrays
#define GENERATED_FUNCTION_ARRAYS {{chip_endpoint_generated_functions}}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4080451

Please sign in to comment.