rename hid client setProtocolMode() to setBootMode()

This commit is contained in:
hathach committed 2019-06-06 16:15:30 +07:00
1 parent 79252a5cbb
commit f84899fe4f
6 files changed
+11 -19

No files matched your search

@@ -111,9 +111,9 @@ void connect_callback(uint16_t conn_handle)
Serial.print("Country code: "); Serial.println(hidInfo[2]);
Serial.printf("HID Flags : 0x%02X\n", hidInfo[3]);
// BLEClientHidAdafruit currently only suports Boot Protocol Mode
// BLEClientHidAdafruit currently only supports Boot Protocol Mode
// for Keyboard and Mouse. Let's set the protocol mode on prph to Boot Mode
hid.setProtocolMode(HID_PROTOCOL_MODE_BOOT);
hid.setBootMode(true);
// Enable Keyboard report notification if present on prph
if ( hid.keyboardPresent() ) hid.enableKeyboard();