diff options
| author | Adam Pigg <adam@piggz.co.uk> | 2020-07-11 20:37:28 (GMT) |
|---|---|---|
| committer | Adam Pigg <adam@piggz.co.uk> | 2020-07-11 20:37:28 (GMT) |
| commit | 7a1e6e6e5bf187846bd533f04ee58e04798f0035 (patch) | |
| tree | 8267d0cd4280abf5a4fca6ffd0a9bc06a3f75411 /src/Components | |
| parent | 0bcaf9c22d6183ba8072e10abb9da7aea578b8db (diff) | |
Add start of music appliction
Diffstat (limited to 'src/Components')
| -rw-r--r-- | src/Components/Ble/NimbleController.cpp | 1 | ||||
| -rw-r--r-- | src/Components/Ble/NimbleController.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/Components/Ble/NimbleController.cpp b/src/Components/Ble/NimbleController.cpp index 561dbce..5345867 100644 --- a/src/Components/Ble/NimbleController.cpp +++ b/src/Components/Ble/NimbleController.cpp @@ -80,6 +80,7 @@ void NimbleController::Init() { deviceInformationService.Init(); currentTimeClient.Init(); currentTimeService.Init(); + musicService.Init(); anService.Init(); diff --git a/src/Components/Ble/NimbleController.h b/src/Components/Ble/NimbleController.h index cf50d78..fab3df2 100644 --- a/src/Components/Ble/NimbleController.h +++ b/src/Components/Ble/NimbleController.h @@ -7,6 +7,7 @@ #include "CurrentTimeClient.h" #include "DfuService.h" #include "CurrentTimeService.h" +#include "MusicService.h" #include <host/ble_gap.h> namespace Pinetime { @@ -35,6 +36,9 @@ namespace Pinetime { uint16_t characteristicValueHandle, const ble_gatt_dsc *descriptor); void StartDiscovery(); + + Pinetime::Controllers::MusicService& music() {return musicService;}; + private: static constexpr char* deviceName = "Pinetime-JF"; Pinetime::System::SystemTask& systemTask; @@ -49,6 +53,7 @@ namespace Pinetime { AlertNotificationService anService; AlertNotificationClient alertNotificationClient; CurrentTimeService currentTimeService; + MusicService musicService; uint8_t addrType; // 1 = Random, 0 = PUBLIC uint16_t connectionHandle; |
