Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d158aa6

Browse filesBrowse files
authored
Fix BluetoothSerial compilation caused by upstream change (espressif#7681)
Fixes: espressif#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 d342739 commit d158aa6
Copy full SHA for d158aa6

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed

‎libraries/BluetoothSerial/src/BluetoothSerial.cpp

Copy file name to clipboardExpand all lines: libraries/BluetoothSerial/src/BluetoothSerial.cpp
+2-2Lines changed: 2 additions & 2 deletions
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;

‎libraries/BluetoothSerial/src/BluetoothSerial.h

Copy file name to clipboardExpand all lines: libraries/BluetoothSerial/src/BluetoothSerial.h
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.