File tree 9 files changed +28
-36
lines changed
air-purifier-app/ameba/main
all-clusters-app/ameba/main
all-clusters-minimal-app/ameba/main
light-switch-app/ameba/main
ota-requestor-app/ameba/main
9 files changed +28
-36
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,9 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
84
84
SetDeviceAttestationCredentialsProvider (&mFactoryDataProvider );
85
85
SetDeviceInstanceInfoProvider (&mFactoryDataProvider );
86
86
87
- if (CONFIG_NETWORK_LAYER_BLE)
88
- {
89
- ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
90
- }
87
+ #if CONFIG_NETWORK_LAYER_BLE
88
+ ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
89
+ #endif
91
90
92
91
PlatformMgr ().AddEventHandler (CHIPDeviceManager::CommonDeviceEventHandler, reinterpret_cast <intptr_t >(cb));
93
92
Original file line number Diff line number Diff line change @@ -77,10 +77,9 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
77
77
SetDeviceAttestationCredentialsProvider (&mFactoryDataProvider );
78
78
SetDeviceInstanceInfoProvider (&mFactoryDataProvider );
79
79
80
- if (CONFIG_NETWORK_LAYER_BLE)
81
- {
82
- ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
83
- }
80
+ #if CONFIG_NETWORK_LAYER_BLE
81
+ ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
82
+ #endif
84
83
85
84
// Register a function to receive events from the CHIP device layer. Note that calls to
86
85
// this function will happen on the CHIP event loop thread, not the app_main thread.
Original file line number Diff line number Diff line change @@ -61,10 +61,9 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
61
61
err = PlatformMgr ().InitChipStack ();
62
62
SuccessOrExit (err);
63
63
64
- if (CONFIG_NETWORK_LAYER_BLE)
65
- {
66
- ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
67
- }
64
+ #if CONFIG_NETWORK_LAYER_BLE
65
+ ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
66
+ #endif
68
67
69
68
// Register a function to receive events from the CHIP device layer. Note that calls to
70
69
// this function will happen on the CHIP event loop thread, not the app_main thread.
Original file line number Diff line number Diff line change @@ -61,10 +61,9 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
61
61
err = PlatformMgr ().InitChipStack ();
62
62
SuccessOrExit (err);
63
63
64
- if (CONFIG_NETWORK_LAYER_BLE)
65
- {
66
- ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
67
- }
64
+ #if CONFIG_NETWORK_LAYER_BLE
65
+ ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
66
+ #endif
68
67
69
68
// Register a function to receive events from the CHIP device layer. Note that calls to
70
69
// this function will happen on the CHIP event loop thread, not the app_main thread.
Original file line number Diff line number Diff line change @@ -77,10 +77,9 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
77
77
SetDeviceAttestationCredentialsProvider (&mFactoryDataProvider );
78
78
SetDeviceInstanceInfoProvider (&mFactoryDataProvider );
79
79
80
- if (CONFIG_NETWORK_LAYER_BLE)
81
- {
82
- ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
83
- }
80
+ #if CONFIG_NETWORK_LAYER_BLE
81
+ ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
82
+ #endif
84
83
85
84
// Register a function to receive events from the CHIP device layer. Note that calls to
86
85
// this function will happen on the CHIP event loop thread, not the app_main thread.
Original file line number Diff line number Diff line change @@ -84,10 +84,9 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
84
84
SetDeviceAttestationCredentialsProvider (&mFactoryDataProvider );
85
85
SetDeviceInstanceInfoProvider (&mFactoryDataProvider );
86
86
87
- if (CONFIG_NETWORK_LAYER_BLE)
88
- {
89
- ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
90
- }
87
+ #if CONFIG_NETWORK_LAYER_BLE
88
+ ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
89
+ #endif
91
90
92
91
PlatformMgr ().AddEventHandler (CHIPDeviceManager::CommonDeviceEventHandler, reinterpret_cast <intptr_t >(cb));
93
92
Original file line number Diff line number Diff line change @@ -77,10 +77,9 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
77
77
SetDeviceAttestationCredentialsProvider (&mFactoryDataProvider );
78
78
SetDeviceInstanceInfoProvider (&mFactoryDataProvider );
79
79
80
- if (CONFIG_NETWORK_LAYER_BLE)
81
- {
82
- ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
83
- }
80
+ #if CONFIG_NETWORK_LAYER_BLE
81
+ ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
82
+ #endif
84
83
85
84
// Register a function to receive events from the CHIP device layer. Note that calls to
86
85
// this function will happen on the CHIP event loop thread, not the app_main thread.
Original file line number Diff line number Diff line change @@ -85,10 +85,10 @@ CHIP_ERROR MatterInitializer::Init_Matter_Stack(const char * appName)
85
85
86
86
chip::DeviceLayer::ConnectivityMgr ().SetBLEDeviceName (appName);
87
87
88
- if ( CONFIG_NETWORK_LAYER_BLE)
89
- {
90
- ConnectivityMgr (). SetBLEAdvertisingEnabled ( true );
91
- }
88
+ # if CONFIG_NETWORK_LAYER_BLE
89
+ ConnectivityMgr (). SetBLEAdvertisingEnabled ( true );
90
+ # endif
91
+
92
92
return CHIP_NO_ERROR;
93
93
}
94
94
Original file line number Diff line number Diff line change @@ -60,10 +60,9 @@ CHIP_ERROR CHIPDeviceManager::Init(CHIPDeviceManagerCallbacks * cb)
60
60
err = PlatformMgr ().InitChipStack ();
61
61
SuccessOrExit (err);
62
62
63
- if (CONFIG_NETWORK_LAYER_BLE)
64
- {
65
- ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
66
- }
63
+ #if CONFIG_NETWORK_LAYER_BLE
64
+ ConnectivityMgr ().SetBLEAdvertisingEnabled (true );
65
+ #endif
67
66
68
67
err = Platform::MemoryInit ();
69
68
SuccessOrExit (err);
You can’t perform that action at this time.
0 commit comments