aed3 / PS4-esp32

Use a ps4 controller with an esp32
328 stars 103 forks source link

Error compiling library #27

Open icebreaker2 opened 2 years ago

icebreaker2 commented 2 years ago

Hi,

thanks for porting original ps3 version to ps4.

Just checked out you repo but faced issues compiling, complaining about something like:

error: too many arguments to function 'esp_bt_gap_set_scan_mode'
         esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_NON_DISCOVERABLE);

I believe there is an incompatibility between the idf version used by my compiler.

icebreaker2 commented 2 years ago

Hmmh. Wanted to make a PR but lack permissions. Please apply:

(Solved my issues)

awillems commented 2 years ago

@icebreaker2 Awesome thank you, thank you. Had the same problem and those changes fixed it for me

Owl-In-Bowl commented 2 years ago

Hi, how did you changed the code to make it run ? I don't understand the modification through Icebreaker2's commentary. Should i reinstall all the boards definitions ? thanks

e32sp commented 2 years ago

For the new update to work, you need the newest ESP32 board files! Espressif itself does provide older files and unfortunately that URL is almost everywhere on the web. Put "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json" into your board manager download URLs.

More info here: https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html

Aditya11rock commented 2 years ago

Hi,

thanks for porting original ps3 version to ps4.

Just checked out you repo but faced issues compiling, complaining about something like:

error: too many arguments to function 'esp_bt_gap_set_scan_mode'
         esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_NON_DISCOVERABLE);

I believe there is an incompatibility between the idf version used by my compiler.

how did you solve this error is it because of older esp32 version??

icebreaker2 commented 2 years ago

Hi, thanks for porting original ps3 version to ps4. Just checked out you repo but faced issues compiling, complaining about something like:

error: too many arguments to function 'esp_bt_gap_set_scan_mode'
         esp_bt_gap_set_scan_mode(ESP_BT_CONNECTABLE, ESP_BT_NON_DISCOVERABLE);

I believe there is an incompatibility between the idf version used by my compiler.

how did you solve this error is it because of older esp32 version??

Its been a while since I looked into it but as far as I remember: