Skip to content

Commit cc614d0

Browse files
committed
Reflects change in esp_bt_gap_set_scan_mode in esp-idf
1 parent 7df50a9 commit cc614d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/BluetoothSerial/src/BluetoothSerial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static void esp_spp_cb(esp_spp_cb_event_t event, esp_spp_cb_param_t *param)
158158
{
159159
case ESP_SPP_INIT_EVT:
160160
log_i("ESP_SPP_INIT_EVT");
161-
esp_bt_gap_set_scan_mode(ESP_BT_SCAN_MODE_CONNECTABLE_DISCOVERABLE);
161+
esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_GENERAL_DISCOVERABLE);
162162
esp_spp_start_srv(ESP_SPP_SEC_NONE, ESP_SPP_ROLE_SLAVE, 0, _spp_server_name);
163163
xEventGroupSetBits(_spp_event_group, SPP_RUNNING);
164164
break;

0 commit comments

Comments
 (0)