Skip to content

Commit

Permalink
Bug fix to initialize pid correctly from 2nd shell argument (project-…
Browse files Browse the repository at this point in the history
  • Loading branch information
subscribeamit authored and pull[bot] committed May 4, 2022
1 parent 4fd95bb commit 8704fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tv-app/linux/AppPlatformShellCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static CHIP_ERROR AppPlatformHandler(int argc, char ** argv)
uint16_t pid = 0;
if (argc >= 3)
{
pid = (uint16_t) strtol(argv[1], &eptr, 10);
pid = (uint16_t) strtol(argv[2], &eptr, 10);
}
ContentAppPlatform::GetInstance().LoadContentAppByClient(vid, pid);

Expand Down

0 comments on commit 8704fb8

Please sign in to comment.