fixed bug

This commit is contained in:
chrismcna
2020-08-22 11:09:27 +01:00
parent f642299ec7
commit 1b3c68147f

View File

@@ -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();
}