mirror of
https://github.com/T-vK/ESP32-BLE-Keyboard.git
synced 2026-03-24 17:27:06 +01:00
Limit device Name and Manufacturer to 15 chars
This commit is contained in:
@@ -96,8 +96,8 @@ static const uint8_t _hidReportDescriptor[] = {
|
||||
|
||||
BleKeyboard::BleKeyboard(std::string deviceName, std::string deviceManufacturer, uint8_t batteryLevel)
|
||||
: hid(0)
|
||||
, deviceName(deviceName)
|
||||
, deviceManufacturer(deviceManufacturer)
|
||||
, deviceName(std::string(deviceName).substr(0, 15))
|
||||
, deviceManufacturer(std::string(deviceManufacturer).substr(0,15))
|
||||
, batteryLevel(batteryLevel) {}
|
||||
|
||||
void BleKeyboard::begin(void)
|
||||
|
||||
Reference in New Issue
Block a user