Bluetooth: Mesh: Enforce proper compilation.
The current method relies heavily on the linker/compiler to do the correct operation. Which is to eliminate the code that will never get called. This posses a problem if the build even changes by a smallest fraction. The current patch will enforce proper inclusion of the code at the pre-processing stage. Thereby not relying on the compiler/linker to do the right thing. Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
This commit is contained in:
parent
79e8f79498
commit
9fe378b7e7
1 changed files with 1 additions and 1 deletions
|
@ -1078,7 +1078,7 @@ static void prov_data(const u8_t *data)
|
|||
/* After PB-GATT provisioning we should start advertising
|
||||
* using Node Identity.
|
||||
*/
|
||||
if (identity_enable) {
|
||||
if (IS_ENABLED(CONFIG_BT_MESH_GATT_PROXY) && identity_enable) {
|
||||
bt_mesh_proxy_identity_enable();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue