Skip to content

Commit 077cdcf

Browse files
Update ps4.c
Fixed bug in ESP_IDF_VERSION_VAL
1 parent 09d09d7 commit 077cdcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ps4.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* Detect ESP-IDF releases */
77
#include <esp_idf_version.h>
88

9-
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(3, 2, 0)
9+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 1)
1010
#include "esp_mac.h" //
1111
#include "esp_spp_api.h" //
1212
#endif
@@ -64,7 +64,7 @@ void ps4Init() {
6464
*******************************************************************************/
6565
void ps4Deinit() {
6666
ps4_l2cap_deinit_services();
67-
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(3, 2, 0)
67+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 1)
6868
esp_spp_deinit();
6969
#else
7070
spp_deinit();
@@ -253,7 +253,7 @@ void ps4SetBluetoothMacAddress(const uint8_t* mac) {
253253
uint8_t baseMac[6];
254254
memcpy(baseMac, mac, 6);
255255
baseMac[5] -= 2;
256-
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(3, 2, 0)
256+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 1)
257257
esp_iface_mac_addr_set(baseMac, ESP_MAC_BASE);
258258
#else
259259
esp_base_mac_addr_set(baseMac);

0 commit comments

Comments
 (0)