Skip to content

Commit a2356f2

Browse files
authored
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`
1 parent 3db4e01 commit a2356f2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/components/ble/MusicService.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#include "components/ble/MusicService.h"
1919
#include "components/ble/NimbleController.h"
2020
#include <cstring>
21+
#include <FreeRTOS.h>
22+
#include <task.h>
2123

2224
namespace {
2325
// 0000yyxx-78fc-48fe-8e23-433b3a1942d0

src/components/ble/MusicService.h

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <host/ble_uuid.h>
2626
#undef max
2727
#undef min
28+
#include <FreeRTOS.h>
2829

2930
namespace Pinetime {
3031
namespace Controllers {

0 commit comments

Comments
 (0)