Skip to content

Commit 5f966c9

Browse files
committed
Compile error
1 parent 54afe73 commit 5f966c9

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

src/BluetoothA2DPCommon.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class BluetoothA2DPCommon {
107107
virtual bool is_connected() = 0;
108108

109109
/// obsolete: please use is_connected
110+
DEPRECATED
110111
virtual bool isConnected(){
111112
return is_connected();
112113
}

src/BluetoothA2DPSink.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,11 @@ class BluetoothA2DPSink : public BluetoothA2DPCommon {
132132
virtual void set_on_data_received(void (*callBack)());
133133

134134
/// Obsolete: please use set_on_connection_state_changed - Set the callback that is called when the BT device is connected
135+
DEPRECATED
135136
virtual void set_on_connected2BT(void (*callBack)());
136137

137138
/// Obsolete: please use set_on_connection_state_changed - Set the callback that is called when the BT device is dis_connected
139+
DEPRECATED
138140
virtual void set_on_dis_connected2BT(void (*callBack)());
139141

140142
/// Allows you to reject unauthorized addresses

src/BluetoothA2DPSource.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ void BluetoothA2DPSource::process_user_state_callbacks(uint16_t event, void *par
587587

588588
// callback on state change
589589
if (connection_state_callback!=nullptr){
590-
connection_state_callback(connection_state, a2d->conn_stat.state);
590+
connection_state_callback(a2d->conn_stat.state, connection_state_obj);
591591
connection_state = a2d->conn_stat.state;
592592
}
593593
break;
@@ -598,7 +598,7 @@ void BluetoothA2DPSource::process_user_state_callbacks(uint16_t event, void *par
598598

599599
// callback on state change
600600
if (audio_state_callback!=nullptr){
601-
audio_state_callback(audio_state, a2d->audio_stat.state);
601+
audio_state_callback(a2d->audio_stat.state, audio_state_obj);
602602
audio_state = a2d->audio_stat.state;
603603
}
604604
break;

src/config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#pragma once
22

3+
#define DEPRECATED __attribute__((deprecated))
4+
5+
36
#if __has_include("esp_arduino_version.h")
47
#include "esp_arduino_version.h"
58
#endif

0 commit comments

Comments
 (0)