diff options
| author | Joel Challis | 2025-05-05 05:05:04 +0200 |
|---|---|---|
| committer | GitHub | 2025-05-05 05:05:04 +0200 |
| commit | 842c8401452f83e691a9df97ffba52a389c885c8 (patch) | |
| tree | 39cc609985e6d8bb6cfa859520ee062cb4793805 /quantum/connection | |
| parent | 614b631ee2649de67a830a39393af416acee58a8 (diff) | |
Bind Bluetooth driver to `host_driver_t` (#25199)
Diffstat (limited to 'quantum/connection')
| -rw-r--r-- | quantum/connection/connection.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/quantum/connection/connection.c b/quantum/connection/connection.c index c7f3c4b424..1ff8876876 100644 --- a/quantum/connection/connection.c +++ b/quantum/connection/connection.c @@ -5,6 +5,10 @@ #include "usb_util.h" #include "util.h" +#ifdef BLUETOOTH_ENABLE +# include "bluetooth.h" +#endif + // ======== DEPRECATED DEFINES - DO NOT USE ======== #ifdef OUTPUT_DEFAULT # undef CONNECTION_HOST_DEFAULT @@ -14,16 +18,6 @@ __attribute__((weak)) void set_output_user(uint8_t output) {} // ======== -#ifdef BLUETOOTH_ENABLE -# ifdef BLUETOOTH_BLUEFRUIT_LE -# include "bluefruit_le.h" -# define bluetooth_is_connected() bluefruit_le_is_connected() -# else -// TODO: drivers should check if BT is connected here -# define bluetooth_is_connected() true -# endif -#endif - #define CONNECTION_HOST_INVALID 0xFF #ifndef CONNECTION_HOST_DEFAULT |