Skip to content

Commit

Permalink
Notify the batteryLevel change (#4517)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joengenduvel authored Nov 10, 2020
1 parent 534f081 commit 3274602
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/BLE/src/BLEHIDDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3274602

Please sign in to comment.