Skip to content

Commit

Permalink
Fix command-line chip-tool toggle command. (#1910)
Browse files Browse the repository at this point in the history
The toggle command takes 5 args (executable, "toggle", ip, port,
endpoint), not 4.
  • Loading branch information
bzbarsky-apple authored Jul 29, 2020
1 parent 2d3fc25 commit ee575c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chip-tool/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ bool DetermineCommand(int argc, char * argv[], Command * command)
if (EqualsLiteral(argv[1], "toggle"))
{
*command = Command::Toggle;
return argc == 4;
return argc == 5;
}

if (EqualsLiteral(argv[1], "echo"))
Expand Down

0 comments on commit ee575c4

Please sign in to comment.