diff options
author | Mark Russell <mruss660@gmail.com> | 2021-09-16 16:01:25 -0400 |
---|---|---|
committer | Mark Russell <mruss660@gmail.com> | 2021-09-16 16:01:25 -0400 |
commit | 1d43adcdfa7bd15ba45c0c9d7c59c0ff99176b9c (patch) | |
tree | c2fa91e352127c09abd0f9b4959cd1f47d628ea8 /src/components/ble/NimbleController.h | |
parent | f857a757a7184726093a7085cdb3d74b728a22e4 (diff) |
Merge upstream
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; } } |