Unverified Commit 3274602e authored by Robby Decosemaeker's avatar Robby Decosemaeker Committed by GitHub

Notify the batteryLevel change (#4517)

parent 534f0810
...@@ -194,6 +194,7 @@ BLECharacteristic* BLEHIDDevice::protocolMode() { ...@@ -194,6 +194,7 @@ BLECharacteristic* BLEHIDDevice::protocolMode() {
void BLEHIDDevice::setBatteryLevel(uint8_t level) { void BLEHIDDevice::setBatteryLevel(uint8_t level) {
m_batteryLevelCharacteristic->setValue(&level, 1); m_batteryLevelCharacteristic->setValue(&level, 1);
m_batteryLevelCharacteristic->notify();
} }
/* /*
* @brief Returns battery level characteristic * @brief Returns battery level characteristic
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment