rename hid client setProtocolMode() to setBootMode()
This commit is contained in:
6 files changed
+11
-19
No files matched your search
@@ -127,9 +127,10 @@ uint8_t BLEClientHidAdafruit::getCountryCode(void)
|
||||
return info[2];
|
||||
}
|
||||
|
||||
bool BLEClientHidAdafruit::setProtocolMode(uint8_t mode)
|
||||
bool BLEClientHidAdafruit::setBootMode(bool boot)
|
||||
{
|
||||
return _protcol_mode.write8(mode);
|
||||
// 0 is boot, 1 is protocol
|
||||
return _protcol_mode.write8(1-boot);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
||||
Reference in new issue
Block a user