diff options
| author | Joel Challis | 2025-05-06 07:47:44 +0200 |
|---|---|---|
| committer | GitHub | 2025-05-06 07:47:44 +0200 |
| commit | ab1332bb6cc798c037a0bd58c22d954755226dbf (patch) | |
| tree | 1b1308c8035c1e2aeb07197cbd001a4b281a7f26 /drivers | |
| parent | ac991405d0c9f47e815786f4732edd00d0f4f571 (diff) | |
Remove force disable of NKRO when Bluetooth enabled (#25201)
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/bluetooth/bluetooth.c | 4 | ||||
| -rw-r--r-- | drivers/bluetooth/bluetooth.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/drivers/bluetooth/bluetooth.c b/drivers/bluetooth/bluetooth.c index 3d41d8b11c..61a3f0f32a 100644 --- a/drivers/bluetooth/bluetooth.c +++ b/drivers/bluetooth/bluetooth.c @@ -11,6 +11,10 @@ __attribute__((weak)) bool bluetooth_is_connected(void) { return true; } +__attribute__((weak)) bool bluetooth_can_send_nkro(void) { + return false; +} + __attribute__((weak)) uint8_t bluetooth_keyboard_leds(void) { return 0; } diff --git a/drivers/bluetooth/bluetooth.h b/drivers/bluetooth/bluetooth.h index fe67c0c968..e50b588db2 100644 --- a/drivers/bluetooth/bluetooth.h +++ b/drivers/bluetooth/bluetooth.h @@ -38,6 +38,11 @@ void bluetooth_task(void); bool bluetooth_is_connected(void); /** + * \brief Detects if `bluetooth_send_nkro` should be used over `bluetooth_send_keyboard`. + */ +bool bluetooth_can_send_nkro(void); + +/** * \brief Get current LED state. */ uint8_t bluetooth_keyboard_leds(void); |