Skip to content

Commit

Permalink
[TE5]:Init ConfigurationMgr before use on linux platform (#9297)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored and pull[bot] committed Aug 31, 2021
1 parent 149b16e commit 5506473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/platform/linux/AppMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ int ChipLinuxAppInit(int argc, char ** argv)
err = chip::Platform::MemoryInit();
SuccessOrExit(err);

err = GetSetupPayload(LinuxDeviceOptions::GetInstance().payload, rendezvousFlags);
err = chip::DeviceLayer::PlatformMgr().InitChipStack();
SuccessOrExit(err);

err = ParseArguments(argc, argv);
err = GetSetupPayload(LinuxDeviceOptions::GetInstance().payload, rendezvousFlags);
SuccessOrExit(err);

err = chip::DeviceLayer::PlatformMgr().InitChipStack();
err = ParseArguments(argc, argv);
SuccessOrExit(err);

ConfigurationMgr().LogDeviceConfig();
Expand Down

0 comments on commit 5506473

Please sign in to comment.