Skip to content

Commit

Permalink
Disable testing code which force custom commission (#22409)
Browse files Browse the repository at this point in the history
* Disable testing code which force custom commission

* Description
Regular commission should go through Standard Commision Flow.
However the Custom Commission flow (for testing only) is enabled,
and override the Standard Commission flown

* Solution
Disable the Custom Commission flow for testing only

* Remove testing code which force custom commission

* Description
Regular commission should go through Standard Commision Flow.
However the Custom Commission flow (for testing only) is enabled,
and override the Standard Commission flown

* Solution
Remove the Custom Commission flow for testing only
  • Loading branch information
erwinpan1 authored Sep 9, 2022
1 parent e220c23 commit bf12fce
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions examples/platform/linux/AppMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,17 +201,6 @@ int ChipLinuxAppInit(int argc, char * const argv[], OptionSet * customOptions)
PrintOnboardingCodes(LinuxDeviceOptions::GetInstance().payload);
}

{
// For testing of manual pairing code with custom commissioning flow
ChipLogProgress(NotSpecified, "==== Onboarding payload for Custom Commissioning Flows ====");
err = GetPayloadContents(LinuxDeviceOptions::GetInstance().payload, rendezvousFlags);
SuccessOrExit(err);

LinuxDeviceOptions::GetInstance().payload.commissioningFlow = chip::CommissioningFlow::kCustom;

PrintOnboardingCodes(LinuxDeviceOptions::GetInstance().payload);
}

#if defined(PW_RPC_ENABLED)
rpc::Init();
ChipLogProgress(NotSpecified, "PW_RPC initialized.");
Expand Down

0 comments on commit bf12fce

Please sign in to comment.