diff options
author | Riku Isokoski <riksu9000@gmail.com> | 2021-09-14 23:38:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 23:38:42 +0300 |
commit | 93d240a23b1071efd0ac4ecba986f98bc1dae2a4 (patch) | |
tree | 920aa5de248719dbac17dd0e3bcfb6e9c1bcc42a /src/components/ble/NimbleController.h | |
parent | 40765f117347f4a4fc6cc4d2c4e46b1923a18fbb (diff) | |
parent | 3eb73774a39e255cd4b5de76441a59f1525a989c (diff) |
Merge branch 'develop' into disable_notif_only
Diffstat (limited to 'src/components/ble/NimbleController.h')
-rw-r--r-- | src/components/ble/NimbleController.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/ble/NimbleController.h b/src/components/ble/NimbleController.h index 0cfe983c..473bb1af 100644 --- a/src/components/ble/NimbleController.h +++ b/src/components/ble/NimbleController.h @@ -72,6 +72,10 @@ namespace Pinetime { uint16_t connHandle(); void NotifyBatteryLevel(uint8_t level); + void RestartFastAdv() { + fastAdvCount = 0; + } + private: static constexpr const char* deviceName = "InfiniTime"; Pinetime::System::SystemTask& systemTask; @@ -94,6 +98,7 @@ namespace Pinetime { uint8_t addrType; // 1 = Random, 0 = PUBLIC uint16_t connectionHandle = BLE_HS_CONN_HANDLE_NONE; + uint8_t fastAdvCount = 0; ble_uuid128_t dfuServiceUuid { .u {.type = BLE_UUID_TYPE_128}, @@ -101,5 +106,7 @@ namespace Pinetime { ServiceDiscovery serviceDiscovery; }; + + static NimbleController* nptr; } } |