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) {
148148
149149static int _nimble_gap_event (struct ble_gap_event *event, void *arg) {
150150 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 ;
156153 }
157154 return 0 ;
158155}
@@ -251,7 +248,7 @@ static bool _init_gap(const char *name) {
251248 nimble_port_freertos_init (_nimble_host_task);
252249
253250 // Wait for sync
254- int sync_timeout = 1000 ; // 10 seconds timeout
251+ int sync_timeout = 1000 ; // 10 seconds timeout
255252 while (!_nimble_synced && sync_timeout > 0 ) {
256253 vTaskDelay (pdMS_TO_TICKS (10 ));
257254 sync_timeout--;
@@ -408,5 +405,5 @@ void SimpleBLE::end() {
408405 _stop_gap ();
409406}
410407
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 {
6363private:
6464};
6565
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
6868
69- #endif // _SIMPLE_BLE_H_
69+ #endif // _SIMPLE_BLE_H_
You can’t perform that action at this time.
0 commit comments