add NimBLEHIDDevice::batteryLevel() (#422)

This commit is contained in:
Giovanni Cascione 2022-07-24 16:34:33 +02:00 committed by h2zero
parent a4a62493e2
commit 38d8223337
2 changed files with 4 additions and 4 deletions

View file

@ -203,12 +203,12 @@ void NimBLEHIDDevice::setBatteryLevel(uint8_t level) {
/* /*
* @brief Returns battery level characteristic * @brief Returns battery level characteristic
* @ return battery level characteristic * @ return battery level characteristic
*//* */
BLECharacteristic* BLEHIDDevice::batteryLevel() { NimBLECharacteristic* NimBLEHIDDevice::batteryLevel() {
return m_batteryLevelCharacteristic; return m_batteryLevelCharacteristic;
} }
/*
BLECharacteristic* BLEHIDDevice::reportMap() { BLECharacteristic* BLEHIDDevice::reportMap() {
return m_reportMapCharacteristic; return m_reportMapCharacteristic;

View file

@ -55,7 +55,7 @@ public:
void pnp(uint8_t sig, uint16_t vid, uint16_t pid, uint16_t version); void pnp(uint8_t sig, uint16_t vid, uint16_t pid, uint16_t version);
//NimBLECharacteristic* hidInfo(); //NimBLECharacteristic* hidInfo();
void hidInfo(uint8_t country, uint8_t flags); void hidInfo(uint8_t country, uint8_t flags);
//NimBLECharacteristic* batteryLevel(); NimBLECharacteristic* batteryLevel();
void setBatteryLevel(uint8_t level); void setBatteryLevel(uint8_t level);