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
#19435)

For commands with no fields we were ignoring the params struct we
allocated.

Fixes #19427
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Feb 6, 2024
1 parent 2fdefe2 commit 1128839
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 1128839

Please sign in to comment.