fix buid conflict between hid central and usb hid

This commit is contained in:
hathach committed 2019-06-06 15:25:26 +07:00
1 parent d87536bbb7
commit 9abd152fe5
6 files changed
+276 -408

No files matched your search

@@ -267,8 +267,8 @@ bool BLEHidAdafruit::keyPress(uint16_t conn_hdl, char ch)
hid_keyboard_report_t report;
varclr(&report);
report.modifier = ( hid_ascii_to_keycode[(uint8_t)ch].shift ) ? KEYBOARD_MODIFIER_LEFTSHIFT : 0;
report.keycode[0] = hid_ascii_to_keycode[(uint8_t)ch].keycode;
report.modifier = ( hid_ascii_to_keycode[(uint8_t)ch][0] ) ? KEYBOARD_MODIFIER_LEFTSHIFT : 0;
report.keycode[0] = hid_ascii_to_keycode[(uint8_t)ch][1];
return keyboardReport(conn_hdl, &report);
}