Skip to content

Commit 80a5ad0

Browse files
authored
Notify the batteryLevel change
1 parent 534f081 commit 80a5ad0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/BLE/src/BLEHIDDevice.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ BLECharacteristic* BLEHIDDevice::protocolMode() {
194194

195195
void BLEHIDDevice::setBatteryLevel(uint8_t level) {
196196
m_batteryLevelCharacteristic->setValue(&level, 1);
197+
m_batteryLevelCharacteristic->notify();
197198
}
198199
/*
199200
* @brief Returns battery level characteristic

0 commit comments

Comments
 (0)