aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ble/HeartRateService.h
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2023-03-15 10:27:49 +0200
committerRiku Isokoski <riksu9000@gmail.com>2023-03-19 12:41:01 +0200
commit829ab86f37fffbed8575aad2be6707198a58ab19 (patch)
treeeecb1287edc5bc238a45c80f56712d8180bf6d1a /src/components/ble/HeartRateService.h
parent7c98f26f1294b7f78156be5682c9633d69ba983d (diff)
HeartRateService: Remove SystemTask dependency
Diffstat (limited to 'src/components/ble/HeartRateService.h')
-rw-r--r--src/components/ble/HeartRateService.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/components/ble/HeartRateService.h b/src/components/ble/HeartRateService.h
index 003bdbd1..72632c96 100644
--- a/src/components/ble/HeartRateService.h
+++ b/src/components/ble/HeartRateService.h
@@ -7,16 +7,13 @@
#undef min
namespace Pinetime {
- namespace System {
- class SystemTask;
- }
-
namespace Controllers {
class HeartRateController;
+ class NimbleController;
class HeartRateService {
public:
- HeartRateService(Pinetime::System::SystemTask& system, Controllers::HeartRateController& heartRateController);
+ HeartRateService(NimbleController& nimble, Controllers::HeartRateController& heartRateController);
void Init();
int OnHeartRateRequested(uint16_t attributeHandle, ble_gatt_access_ctxt* context);
void OnNewHeartRateValue(uint8_t hearRateValue);
@@ -25,7 +22,7 @@ namespace Pinetime {
void UnsubscribeNotification(uint16_t attributeHandle);
private:
- Pinetime::System::SystemTask& system;
+ NimbleController& nimble;
Controllers::HeartRateController& heartRateController;
static constexpr uint16_t heartRateServiceId {0x180D};
static constexpr uint16_t heartRateMeasurementId {0x2A37};