summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorTravis La Marr <exiva@exiva.net>2017-03-24 15:55:02 -0400
committerTravis La Marr <exiva@exiva.net>2017-03-24 15:55:02 -0400
commitb4ac0598fa5a69418d79f78c0cf323307d5f5f5e (patch)
tree01275cf95c23476d1b2d55d224dce9f824c2b1ef /tmk_core
parentddc036b69ea508750f5129d9a43fee484148716a (diff)
Readd bluetooth output direction on standard key input.
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/protocol/lufa/lufa.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c
index d71748ce3c..3d7a8cc43e 100644
--- a/tmk_core/protocol/lufa/lufa.c
+++ b/tmk_core/protocol/lufa/lufa.c
@@ -603,14 +603,16 @@ static void send_keyboard(report_keyboard_t *report)
uint8_t where = where_to_send();
#ifdef BLUETOOTH_ENABLE
- #ifdef MODULE_ADAFRUIT_BLE
- adafruit_ble_send_keys(report->mods, report->keys, sizeof(report->keys));
- #else
- bluefruit_serial_send(0xFD);
- for (uint8_t i = 0; i < KEYBOARD_EPSIZE; i++) {
- bluefruit_serial_send(report->raw[i]);
- }
- #endif
+ if (where == OUTPUT_BLUETOOTH || where == OUTPUT_USB_AND_BT) {
+ #ifdef MODULE_ADAFRUIT_BLE
+ adafruit_ble_send_keys(report->mods, report->keys, sizeof(report->keys));
+ #else
+ bluefruit_serial_send(0xFD);
+ for (uint8_t i = 0; i < KEYBOARD_EPSIZE; i++) {
+ bluefruit_serial_send(report->raw[i]);
+ }
+ #endif
+ }
#endif
if (where != OUTPUT_USB && where != OUTPUT_USB_AND_BT) {