Skip to content

Commit

Permalink
adds fix for 917SoC commissionable data provider
Browse files Browse the repository at this point in the history
  • Loading branch information
silabs-srishylam committed Apr 18, 2023
1 parent 19909ce commit 992f6f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions examples/platform/silabs/SiWx917/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ source_set("siwx917-attestation-credentials") {
}

source_set("silabs-factory-data-provider") {
if (siwx917_commissionable_data) {
defines = [ "SIWX917_USE_COMISSIONABLE_DATA=1" ]
}

sources = [
"${silabs_common_plat_dir}/SilabsDeviceDataProvider.cpp",
"${silabs_common_plat_dir}/SilabsDeviceDataProvider.h",
Expand All @@ -162,6 +158,8 @@ source_set("silabs-factory-data-provider") {
"${chip_root}/src/platform:platform_base",
"${chip_root}/src/setup_payload",
]

public_configs = [ ":siwx917-common-config" ]
}

config("siwx917-common-config") {
Expand All @@ -184,6 +182,10 @@ config("siwx917-common-config") {
if (enable_heap_monitoring) {
defines += [ "HEAP_MONITORING" ]
}

if (siwx917_commissionable_data) {
defines += [ "SIWX917_USE_COMISSIONABLE_DATA=1" ]
}
}

config("silabs-wifi-config") {
Expand Down
1 change: 1 addition & 0 deletions examples/platform/silabs/SilabsDeviceDataProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ CHIP_ERROR SIWx917DeviceDataProvider::FlashFactoryData()
return err;
}
}
return CHIP_NO_ERROR;
}
#endif

Expand Down

0 comments on commit 992f6f8

Please sign in to comment.