We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9bb0b3 commit dafdf33Copy full SHA for dafdf33
1 file changed
src/components/ble/BatteryInformationService.cpp
@@ -43,7 +43,7 @@ int BatteryInformationService::OnBatteryServiceRequested(uint16_t connectionHand
43
ble_gatt_access_ctxt* context) {
44
if (attributeHandle == batteryLevelHandle) {
45
NRF_LOG_INFO("BATTERY : handle = %d", batteryLevelHandle);
46
- static uint8_t batteryValue = batteryController.PercentRemaining();
+ uint8_t batteryValue = batteryController.PercentRemaining();
47
int res = os_mbuf_append(context->om, &batteryValue, 1);
48
return (res == 0) ? 0 : BLE_ATT_ERR_INSUFFICIENT_RES;
49
}
0 commit comments