Skip to content

Commit

Permalink
Make darwin-framework-tool subscribe-by-id pay attention to the "wait…
Browse files Browse the repository at this point in the history
…" argument. (#19431)

Fixes #19426
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jun 15, 2022
1 parent 74de70f commit d5dda49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5,341 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ class SubscribeAttribute : public ModelCommand {
return CHIP_NO_ERROR;
}

chip::System::Clock::Timeout GetWaitDuration() const override
{
return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10);
}

protected:
chip::Optional<bool> mKeepSubscriptions;
chip::Optional<bool> mFabricFiltered;
Expand Down
6 changes: 0 additions & 6 deletions examples/darwin-framework-tool/templates/commands.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,6 @@ public:

return CHIP_NO_ERROR;
}

chip::System::Clock::Timeout GetWaitDuration() const override
{
return chip::System::Clock::Seconds16(mWait ? UINT16_MAX : 10);
}

};

{{/if}}
Expand Down
Loading

0 comments on commit d5dda49

Please sign in to comment.