Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update ESP32 BLE libraries, apply fixes #2847

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

mikee47
Copy link
Contributor

@mikee47 mikee47 commented Jun 30, 2024

This PR updates the three ESP32 BLE libraries and applies some fixes.

  • NimBLE library (esp-nimble-cpp submodule)
  • BLEGamepad library (ESP32-BLE-Gamepad submodule)
  • BLEKeyboard (ESP32-BLE-Keyboard submodule)

There are some unused parameter warnings present (when enabled) which can mask issues. Disabled those warnings for library build (in component.mk) and fixed them so #include files don't cause issues elsewhere. Many warnings come from idf.

Fixed in ESP32-BLE-Gamepad:

  • ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]. No reason for these not to be const char*. Patched.

  • BleConnectionStatus.h 'virtual void NimBLEServerCallbacks::onDisconnect(NimBLEServer*, NimBLEConnInfo&, int)' was hidden [-Woverloaded-virtual=]. Fixed method implementation, added override directive.

Patch fixes for warnings
Hide unused parameter warnings
@slaff slaff added this to the 5.2.0 milestone Jul 1, 2024
@slaff slaff merged commit 44fe07a into SmingHub:develop Jul 1, 2024
48 checks passed
@mikee47 mikee47 deleted the feature/update-ble branch July 1, 2024 09:51
@slaff slaff mentioned this pull request Jul 4, 2024
5 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants