From 1b3c68147fd83c01ef9962a2c10503e594a604ee Mon Sep 17 00:00:00 2001 From: chrismcna Date: Sat, 22 Aug 2020 11:09:27 +0100 Subject: [PATCH] fixed bug --- src/hardware/blectl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/blectl.cpp b/src/hardware/blectl.cpp index 4a16479..77f459b 100644 --- a/src/hardware/blectl.cpp +++ b/src/hardware/blectl.cpp @@ -460,6 +460,6 @@ void blectl_update_battery( int32_t percent, bool charging, bool plug ) uint8_t level = (uint8_t)percent; if (level > 100) level = 100; - pBatteryServiceBatteryLevelCharacteristic->setValue(&level, 1); - pBatteryServiceBatteryLevelCharacteristic->notify(); + pBatteryLevelCharacteristic->setValue(&level, 1); + pBatteryLevelCharacteristic->notify(); } \ No newline at end of file