summaryrefslogtreecommitdiff
path: root/src/components/ble/NimbleController.h
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-07-13 20:31:44 +0200
committerJean-François Milants <jf@codingfield.com>2021-07-13 20:31:44 +0200
commitaf10747c94080123a5847d5258c2cfeb7ec317cb (patch)
tree7385ab23e93eb7746cf459c64679ddcdaff4fc41 /src/components/ble/NimbleController.h
parent4f378e8726fdcff72598aa6ed12eeaa6b3e61355 (diff)
parent3e705548442f1f208c2092ffc865ae824ee0955a (diff)
Merge branch 'notify-battery-level' into develop
Diffstat (limited to 'src/components/ble/NimbleController.h')
-rw-r--r--src/components/ble/NimbleController.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/ble/NimbleController.h b/src/components/ble/NimbleController.h
index 5dd01e42..0cfe983c 100644
--- a/src/components/ble/NimbleController.h
+++ b/src/components/ble/NimbleController.h
@@ -70,6 +70,7 @@ namespace Pinetime {
};
uint16_t connHandle();
+ void NotifyBatteryLevel(uint8_t level);
private:
static constexpr const char* deviceName = "InfiniTime";
@@ -92,7 +93,7 @@ namespace Pinetime {
HeartRateService heartRateService;
uint8_t addrType; // 1 = Random, 0 = PUBLIC
- uint16_t connectionHandle = 0;
+ uint16_t connectionHandle = BLE_HS_CONN_HANDLE_NONE;
ble_uuid128_t dfuServiceUuid {
.u {.type = BLE_UUID_TYPE_128},