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

@@ -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);
}
/*------------------------------------------------------------------*/