Skip to content

Commit

Permalink
Remove unnecessary cast from endpoint-config.
Browse files Browse the repository at this point in the history
The cast would have just covered up issues if any came up.  This way
we know our types match up.
  • Loading branch information
bzbarsky-apple committed Feb 3, 2023
1 parent 87e7510 commit 634e82b
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 634e82b

Please sign in to comment.