From 220652ffac8a3848203e2580a19dabe52eca5776 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Fri, 10 Nov 2017 11:02:48 +0000 Subject: [PATCH] BLE: Fix assertion in Battery service. --- features/FEATURE_BLE/ble/services/BatteryService.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/ble/services/BatteryService.h b/features/FEATURE_BLE/ble/services/BatteryService.h index 1112775bc5..e6025af515 100644 --- a/features/FEATURE_BLE/ble/services/BatteryService.h +++ b/features/FEATURE_BLE/ble/services/BatteryService.h @@ -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(),