aboutsummaryrefslogtreecommitdiffstats
path: root/quantum
diff options
context:
space:
mode:
authorJoel Challis2025-05-06 07:47:44 +0200
committerGitHub2025-05-06 07:47:44 +0200
commitab1332bb6cc798c037a0bd58c22d954755226dbf (patch)
tree1b1308c8035c1e2aeb07197cbd001a4b281a7f26 /quantum
parentac991405d0c9f47e815786f4732edd00d0f4f571 (diff)
Remove force disable of NKRO when Bluetooth enabled (#25201)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/action_util.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/quantum/action_util.c b/quantum/action_util.c
index 9fe17f2124..e821e113ef 100644
--- a/quantum/action_util.c
+++ b/quantum/action_util.c
@@ -21,7 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "action_layer.h"
#include "timer.h"
#include "keycode_config.h"
-#include "usb_device_state.h"
#include <string.h>
extern keymap_config_t keymap_config;
@@ -319,14 +318,12 @@ void send_nkro_report(void) {
*/
void send_keyboard_report(void) {
#ifdef NKRO_ENABLE
- if (usb_device_state_get_protocol() == USB_PROTOCOL_REPORT && keymap_config.nkro) {
+ if (host_can_send_nkro() && keymap_config.nkro) {
send_nkro_report();
- } else {
- send_6kro_report();
+ return;
}
-#else
- send_6kro_report();
#endif
+ send_6kro_report();
}
/** \brief Get mods