diff options
| author | Joel Challis | 2025-04-21 23:27:56 +0200 |
|---|---|---|
| committer | GitHub | 2025-04-21 23:27:56 +0200 |
| commit | c7cb7ba9765b35930a26ec247e362615ffd10ed2 (patch) | |
| tree | bbab7782a3c1937f69a8c105dc06cfa1b7f54346 /drivers/bluetooth/outputselect.h | |
| parent | ec324af22eddff1f89f33a30c77a678b111c420c (diff) | |
Implement connection keycode logic (#25176)
Diffstat (limited to 'drivers/bluetooth/outputselect.h')
| -rw-r--r-- | drivers/bluetooth/outputselect.h | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/drivers/bluetooth/outputselect.h b/drivers/bluetooth/outputselect.h index c4548e1122..25f063bbff 100644 --- a/drivers/bluetooth/outputselect.h +++ b/drivers/bluetooth/outputselect.h @@ -14,21 +14,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once -#include <stdint.h> +#include "connection.h" -enum outputs { - OUTPUT_AUTO, +// DEPRECATED - DO NOT USE - OUTPUT_NONE, - OUTPUT_USB, - OUTPUT_BLUETOOTH -}; +#define OUTPUT_AUTO CONNECTION_HOST_AUTO +#define OUTPUT_NONE CONNECTION_HOST_NONE +#define OUTPUT_USB CONNECTION_HOST_USB +#define OUTPUT_BLUETOOTH CONNECTION_HOST_BLUETOOTH -#ifndef OUTPUT_DEFAULT -# define OUTPUT_DEFAULT OUTPUT_AUTO -#endif +#define set_output connection_set_host_noeeprom +#define where_to_send connection_get_host +#define auto_detect_output connection_auto_detect_host -void set_output(uint8_t output); -void set_output_user(uint8_t output); -uint8_t auto_detect_output(void); -uint8_t where_to_send(void); +void set_output_user(uint8_t output); |