File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -148,11 +148,8 @@ static void _nimble_on_sync(void) {
148
148
149
149
static int _nimble_gap_event (struct ble_gap_event *event, void *arg) {
150
150
switch (event->type ) {
151
- case BLE_GAP_EVENT_ADV_COMPLETE:
152
- log_d (" BLE_GAP_EVENT_ADV_COMPLETE" );
153
- break ;
154
- default :
155
- break ;
151
+ case BLE_GAP_EVENT_ADV_COMPLETE: log_d (" BLE_GAP_EVENT_ADV_COMPLETE" ); break ;
152
+ default : break ;
156
153
}
157
154
return 0 ;
158
155
}
@@ -251,7 +248,7 @@ static bool _init_gap(const char *name) {
251
248
nimble_port_freertos_init (_nimble_host_task);
252
249
253
250
// Wait for sync
254
- int sync_timeout = 1000 ; // 10 seconds timeout
251
+ int sync_timeout = 1000 ; // 10 seconds timeout
255
252
while (!_nimble_synced && sync_timeout > 0 ) {
256
253
vTaskDelay (pdMS_TO_TICKS (10 ));
257
254
sync_timeout--;
@@ -408,5 +405,5 @@ void SimpleBLE::end() {
408
405
_stop_gap ();
409
406
}
410
407
411
- #endif // CONFIG_BLUEDROID_ENABLED || CONFIG_NIMBLE_ENABLED
412
- #endif // SOC_BLE_SUPPORTED || CONFIG_ESP_HOSTED_ENABLE_BT_NIMBLE
408
+ #endif // CONFIG_BLUEDROID_ENABLED || CONFIG_NIMBLE_ENABLED
409
+ #endif // SOC_BLE_SUPPORTED || CONFIG_ESP_HOSTED_ENABLE_BT_NIMBLE
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class SimpleBLE {
63
63
private:
64
64
};
65
65
66
- #endif // SOC_BLE_SUPPORTED || CONFIG_ESP_HOSTED_ENABLE_BT_NIMBLE
67
- #endif // CONFIG_BLUEDROID_ENABLED || CONFIG_NIMBLE_ENABLED
66
+ #endif // SOC_BLE_SUPPORTED || CONFIG_ESP_HOSTED_ENABLE_BT_NIMBLE
67
+ #endif // CONFIG_BLUEDROID_ENABLED || CONFIG_NIMBLE_ENABLED
68
68
69
- #endif // _SIMPLE_BLE_H_
69
+ #endif // _SIMPLE_BLE_H_
You can’t perform that action at this time.
0 commit comments