Skip to content

Commit c36dbf0

Browse files
committed
Fix BluetoothSerial compilation caused by upstream change
Fixes: #7675 The signature of `esp_spp_cb_t` has changed in recent ESP-IDF v4.4.3, so this fix targets to accomodate that change in Arduino
1 parent 57b27cd commit c36dbf0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: libraries/BluetoothSerial/src/BluetoothSerial.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static TaskHandle_t _spp_task_handle = NULL;
5454
static EventGroupHandle_t _spp_event_group = NULL;
5555
static EventGroupHandle_t _bt_event_group = NULL;
5656
static boolean secondConnectionAttempt;
57-
static esp_spp_cb_t * custom_spp_callback = NULL;
57+
static esp_spp_cb_t custom_spp_callback = NULL;
5858
static BluetoothSerialDataCb custom_data_callback = NULL;
5959
static esp_bd_addr_t current_bd_addr;
6060
static ConfirmRequestCb confirm_request_callback = NULL;
@@ -886,7 +886,7 @@ void BluetoothSerial::confirmReply(boolean confirm)
886886
}
887887

888888

889-
esp_err_t BluetoothSerial::register_callback(esp_spp_cb_t * callback)
889+
esp_err_t BluetoothSerial::register_callback(esp_spp_cb_t callback)
890890
{
891891
custom_spp_callback = callback;
892892
return ESP_OK;

Diff for: libraries/BluetoothSerial/src/BluetoothSerial.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class BluetoothSerial: public Stream
5353
void end(void);
5454
void setTimeout(int timeoutMS);
5555
void onData(BluetoothSerialDataCb cb);
56-
esp_err_t register_callback(esp_spp_cb_t * callback);
56+
esp_err_t register_callback(esp_spp_cb_t callback);
5757

5858
void onConfirmRequest(ConfirmRequestCb cb);
5959
void onAuthComplete(AuthCompleteCb cb);

0 commit comments

Comments
 (0)