Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-apple committed Apr 10, 2021
1 parent 33af7ef commit aa4c502
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/all-clusters-app/all-clusters-common/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import("//build_overrides/chip.gni")
import("${chip_root}/src/app/chip_data_model.gni")

chip_data_model("all-clusters-common") {
public_deps = [ "${chip_root}/src/protocols/secure_channel" ]

cluster_sources = [
"account-login-server",
"application-launcher-server",
Expand Down
2 changes: 2 additions & 0 deletions examples/lock-app/lock-common/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import("//build_overrides/chip.gni")
import("${chip_root}/src/app/chip_data_model.gni")

chip_data_model("lock-common") {
public_deps = [ "${chip_root}/src/protocols/secure_channel" ]

cluster_sources = [
"bindings",
"network-commissioning",
Expand Down
5 changes: 4 additions & 1 deletion src/messaging/ExchangeDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ class DLL_EXPORT ExchangeDelegate
virtual ExchangeTransport * AllocTransport(ReliableMessageMgr * rmMgr, SecureSessionMgr * sessionMgr)
{
ApplicationExchangeTransport * transport = chip::Platform::New<Messaging::ApplicationExchangeTransport>();
transport->Init(rmMgr, sessionMgr);
if (transport != nullptr)
{
transport->Init(rmMgr, sessionMgr);
}
return transport;
}

Expand Down

0 comments on commit aa4c502

Please sign in to comment.