summaryrefslogtreecommitdiff
path: root/src/systemtask
diff options
context:
space:
mode:
authorReinhold Gschweicher <pyro4hell@gmail.com>2021-10-13 20:08:35 (GMT)
committerReinhold Gschweicher <pyro4hell@gmail.com>2021-11-15 21:02:49 (GMT)
commitac7b2da611fa5ef4cc989a9feb027f66c0ebfc6c (patch)
tree15a03dd3349eae42628f657790482c45eaedd509 /src/systemtask
parent624429b54c1819d58b69a2f74f5c852e1ecb0ed3 (diff)
Update includes to to be relative to src directory
Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
Diffstat (limited to 'src/systemtask')
-rw-r--r--src/systemtask/SystemTask.cpp2
-rw-r--r--src/systemtask/SystemTask.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index 4b03f9a..1120b80 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -1,4 +1,4 @@
-#include "SystemTask.h"
+#include "systemtask/SystemTask.h"
#define min // workaround: nimble's min/max macros conflict with libstdc++
#define max
#include <host/ble_gap.h>
diff --git a/src/systemtask/SystemTask.h b/src/systemtask/SystemTask.h
index 412878b..e2e6de7 100644
--- a/src/systemtask/SystemTask.h
+++ b/src/systemtask/SystemTask.h
@@ -11,7 +11,7 @@
#include <drivers/PinMap.h>
#include <components/motion/MotionController.h>
-#include "SystemMonitor.h"
+#include "systemtask/SystemMonitor.h"
#include "components/battery/BatteryController.h"
#include "components/ble/NimbleController.h"
#include "components/ble/NotificationManager.h"
@@ -33,7 +33,7 @@
#endif
#include "drivers/Watchdog.h"
-#include "Messages.h"
+#include "systemtask/Messages.h"
extern std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> NoInit_BackUpTime;
namespace Pinetime {