Skip to content

Commit 220652f

Browse files
committed
BLE: Fix assertion in Battery service.
1 parent 5213453 commit 220652f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/ble/services/BatteryService.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class BatteryService {
100100
*/
101101
void updateBatteryLevel(uint8_t newLevel)
102102
{
103-
MBED_ASSERT(level <= 100);
103+
MBED_ASSERT(newLevel <= 100);
104104
batteryLevel = newLevel;
105105
ble.gattServer().write(
106106
batteryLevelCharacteristic.getValueHandle(),

0 commit comments

Comments
 (0)