Skip to content

Commit

Permalink
tv-casting-app: turning off extended discovery (#26804)
Browse files Browse the repository at this point in the history
* tv-casting-app: turning off extended discovery (#170)

* Moving mTimeSource declaration behind CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY
  • Loading branch information
sharadb-amazon authored and pull[bot] committed Mar 13, 2024
1 parent b999e9d commit 8076292
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

#define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY_CLIENT 1

#define CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY 1
#define CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY 0

#define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONABLE_DEVICE_TYPE 1

Expand Down
4 changes: 2 additions & 2 deletions src/app/server/Dnssd.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ class DLL_EXPORT DnssdServer
//
bool HaveOperationalCredentials();

Time::TimeSource<Time::Source::kSystem> mTimeSource;

FabricTable * mFabricTable = nullptr;
CommissioningModeProvider * mCommissioningModeProvider = nullptr;

Expand All @@ -148,6 +146,8 @@ class DLL_EXPORT DnssdServer
Optional<uint16_t> mEphemeralDiscriminator;

#if CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY
Time::TimeSource<Time::Source::kSystem> mTimeSource;

/// Get the current extended discovery timeout (set by
/// SetExtendedDiscoveryTimeoutSecs, or the configuration default if not set).
int32_t GetExtendedDiscoveryTimeoutSecs();
Expand Down

0 comments on commit 8076292

Please sign in to comment.