mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Fix assertion in Battery service.
parent
521345307b
commit
220652ffac
|
@ -100,7 +100,7 @@ public:
|
|||
*/
|
||||
void updateBatteryLevel(uint8_t newLevel)
|
||||
{
|
||||
MBED_ASSERT(level <= 100);
|
||||
MBED_ASSERT(newLevel <= 100);
|
||||
batteryLevel = newLevel;
|
||||
ble.gattServer().write(
|
||||
batteryLevelCharacteristic.getValueHandle(),
|
||||
|
|
Loading…
Reference in New Issue