aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorNeroBurner <pyro4hell@gmail.com>2024-09-29 21:10:32 +0200
committerGitHub <noreply@github.com>2024-09-29 21:10:32 +0200
commita2356f2f4a61f9df77b07d5762581682b1e28c24 (patch)
tree11ced022c0943151bfbcab82f6a811ddcff0cc37 /src/components
parent3db4e012ceb38602912edad75ccbbcd8834bcae6 (diff)
MusicService: add missing includes for TickType_t and xTaskGetTickCount (#2130)
Add `FreeRTOS.h` include for the directly used data type `TickType_t` in the header and the function `xTaskGetTickCount` from FreeRTOS's `task.h`
Diffstat (limited to 'src/components')
-rw-r--r--src/components/ble/MusicService.cpp2
-rw-r--r--src/components/ble/MusicService.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/components/ble/MusicService.cpp b/src/components/ble/MusicService.cpp
index 94d97f46..43cbec70 100644
--- a/src/components/ble/MusicService.cpp
+++ b/src/components/ble/MusicService.cpp
@@ -18,6 +18,8 @@
#include "components/ble/MusicService.h"
#include "components/ble/NimbleController.h"
#include <cstring>
+#include <FreeRTOS.h>
+#include <task.h>
namespace {
// 0000yyxx-78fc-48fe-8e23-433b3a1942d0
diff --git a/src/components/ble/MusicService.h b/src/components/ble/MusicService.h
index f4b902fe..93d94a34 100644
--- a/src/components/ble/MusicService.h
+++ b/src/components/ble/MusicService.h
@@ -25,6 +25,7 @@
#include <host/ble_uuid.h>
#undef max
#undef min
+#include <FreeRTOS.h>
namespace Pinetime {
namespace Controllers {