aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorJoel Challis2025-05-06 07:47:44 +0200
committerGitHub2025-05-06 07:47:44 +0200
commitab1332bb6cc798c037a0bd58c22d954755226dbf (patch)
tree1b1308c8035c1e2aeb07197cbd001a4b281a7f26 /drivers/bluetooth
parentac991405d0c9f47e815786f4732edd00d0f4f571 (diff)
Remove force disable of NKRO when Bluetooth enabled (#25201)
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/bluetooth.c4
-rw-r--r--drivers/bluetooth/bluetooth.h5
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);