BLE: Fix assertion in Battery service.

pull/5472/head
Vincent Coubard 2017-11-10 11:02:48 +00:00
parent 521345307b
commit 220652ffac
1 changed files with 1 additions and 1 deletions

View File

@ -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(),