diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2021-09-22 09:03:41 (GMT) |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2021-09-22 09:03:41 (GMT) |
| commit | b2100908373f76660fcfb5f3c454eb69a38ca4ef (patch) | |
| tree | 090a52c4e10646a0d7a9383920452342b4898f4c /src/components/ble/NimbleController.h | |
| parent | b31b2425f8afd5022173852f5a78592b37104c39 (diff) | |
| parent | 1c3c3c8db919c703bbd3f1be4ce9c6833237ea6f (diff) | |
Merge branch 'develop' into detect_full_charge
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 0cfe983..473bb1a 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; } } |
