Skip to content

Commit 825a077

Browse files
authored
SerialBT(fix): fixes callback pointer reference and call
1 parent 6710517 commit 825a077

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/BluetoothSerial/src/BluetoothSerial.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static TaskHandle_t _spp_task_handle = NULL;
5555
static EventGroupHandle_t _spp_event_group = NULL;
5656
static EventGroupHandle_t _bt_event_group = NULL;
5757
static boolean secondConnectionAttempt;
58-
static esp_spp_cb_t * custom_spp_callback = NULL;
58+
static esp_spp_cb_t custom_spp_callback = NULL;
5959
static BluetoothSerialDataCb custom_data_callback = NULL;
6060
static esp_bd_addr_t current_bd_addr;
6161
static ConfirmRequestCb confirm_request_callback = NULL;
@@ -945,7 +945,7 @@ void BluetoothSerial::confirmReply(boolean confirm)
945945
}
946946

947947

948-
esp_err_t BluetoothSerial::register_callback(esp_spp_cb_t * callback)
948+
esp_err_t BluetoothSerial::register_callback(esp_spp_cb_t callback)
949949
{
950950
custom_spp_callback = callback;
951951
return ESP_OK;

0 commit comments

Comments
 (0)