Skip to content

Commit

Permalink
Fix timed invoke for commands with no fields in darwin-framework-tool.
Browse files Browse the repository at this point in the history
For commands with no fields we were ignoring the params struct we
allocated.

Fixes project-chip#19427
  • Loading branch information
bzbarsky-apple committed Jun 10, 2022
1 parent ac8bdbf commit ef76022
Show file tree
Hide file tree
Showing 2 changed files with 418 additions and 381 deletions.
2 changes: 1 addition & 1 deletion examples/darwin-framework-tool/templates/commands.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public:
uint16_t __block responsesNeeded = repeatCount;
while (repeatCount--)
{
[cluster {{asLowerCamelCase name}}With{{#if (hasArguments)}}Params:params completionHandler:{{else}}CompletionHandler:{{/if}}
[cluster {{asLowerCamelCase name}}WithParams:params completionHandler:
{{#if hasSpecificResponse}}
^(CHIP{{asUpperCamelCase clusterName}}Cluster{{asUpperCamelCase responseName}}Params * _Nullable values, NSError * _Nullable error) {
NSLog(@"Values: %@", values);
Expand Down
Loading

0 comments on commit ef76022

Please sign in to comment.