Skip to content

Commit 0f22eb1

Browse files
committed
ESP_A2D_AUDIO_STATE_SUSPEND for idf < 5.2.0
1 parent 209654e commit 0f22eb1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/BluetoothA2DPCommon.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ using namespace esp_i2s;
125125
#define esp_bt_gap_set_device_name esp_bt_dev_set_device_name
126126
#endif
127127

128+
// Support for older IDF versions
129+
#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 2, 0)
130+
#define ESP_A2D_AUDIO_STATE_SUSPEND ESP_A2D_AUDIO_STATE_REMOTE_SUSPEND
131+
#endif
132+
128133
#define A2DP_DEPRECATED __attribute__((deprecated))
129134

130135
#define BT_APP_SIG_WORK_DISPATCH (0x01)

0 commit comments

Comments
 (0)