1
0
Fork 0

Readd bluetooth output direction on standard key input.

This commit is contained in:
Travis La Marr 2017-03-24 15:55:02 -04:00
parent ddc036b69e
commit b4ac0598fa
1 changed files with 10 additions and 8 deletions

View File

@ -603,14 +603,16 @@ static void send_keyboard(report_keyboard_t *report)
uint8_t where = where_to_send(); uint8_t where = where_to_send();
#ifdef BLUETOOTH_ENABLE #ifdef BLUETOOTH_ENABLE
#ifdef MODULE_ADAFRUIT_BLE if (where == OUTPUT_BLUETOOTH || where == OUTPUT_USB_AND_BT) {
adafruit_ble_send_keys(report->mods, report->keys, sizeof(report->keys)); #ifdef MODULE_ADAFRUIT_BLE
#else adafruit_ble_send_keys(report->mods, report->keys, sizeof(report->keys));
bluefruit_serial_send(0xFD); #else
for (uint8_t i = 0; i < KEYBOARD_EPSIZE; i++) { bluefruit_serial_send(0xFD);
bluefruit_serial_send(report->raw[i]); for (uint8_t i = 0; i < KEYBOARD_EPSIZE; i++) {
} bluefruit_serial_send(report->raw[i]);
#endif }
#endif
}
#endif #endif
if (where != OUTPUT_USB && where != OUTPUT_USB_AND_BT) { if (where != OUTPUT_USB && where != OUTPUT_USB_AND_BT) {