Skip to content

Commit

Permalink
MusicService: add missing includes for TickType_t and xTaskGetTickCou…
Browse files Browse the repository at this point in the history
…nt (#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`
  • Loading branch information
NeroBurner authored Sep 29, 2024
1 parent 3db4e01 commit a2356f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/ble/MusicService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/components/ble/MusicService.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <host/ble_uuid.h>
#undef max
#undef min
#include <FreeRTOS.h>

namespace Pinetime {
namespace Controllers {
Expand Down

0 comments on commit a2356f2

Please sign in to comment.