Notify the batteryLevel change (#4517)

This commit is contained in:
Robby Decosemaeker 2020-11-10 12:02:00 +01:00 committed by GitHub
parent 534f0810a6
commit 3274602eb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,6 +194,7 @@ BLECharacteristic* BLEHIDDevice::protocolMode() {
void BLEHIDDevice::setBatteryLevel(uint8_t level) {
m_batteryLevelCharacteristic->setValue(&level, 1);
m_batteryLevelCharacteristic->notify();
}
/*
* @brief Returns battery level characteristic