Skip to content

Commit 6356c7f

Browse files
committed
Fix DisplayAppRecovery : fix include error by forward declaring Controllers in header file.
1 parent cf20b02 commit 6356c7f

2 files changed

Lines changed: 20 additions & 13 deletions

File tree

src/displayapp/DisplayAppRecovery.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <components/rle/RleDecoder.h>
66
#include <touchhandler/TouchHandler.h>
77
#include "displayapp/icons/infinitime/infinitime-nb.c"
8+
#include "components/ble/BleController.h"
89

910
using namespace Pinetime::Applications;
1011

src/displayapp/DisplayAppRecovery.h

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,38 @@
66
#include <bits/unique_ptr.h>
77
#include <queue.h>
88
#include "components/gfx/Gfx.h"
9-
#include "components/battery/BatteryController.h"
10-
#include "components/brightness/BrightnessController.h"
11-
#include "components/ble/BleController.h"
12-
#include "components/datetime/DateTimeController.h"
13-
#include "components/ble/NotificationManager.h"
14-
#include "components/firmwarevalidator/FirmwareValidator.h"
159
#include "drivers/Cst816s.h"
1610
#include <date/date.h>
1711
#include <drivers/Watchdog.h>
18-
#include <components/heartrate/HeartRateController.h>
19-
#include <components/motion/MotionController.h>
2012
#include <components/motor/MotorController.h>
21-
#include <components/settings/Settings.h>
2213
#include "TouchEvents.h"
2314
#include "Apps.h"
2415
#include "Messages.h"
2516
#include "DummyLittleVgl.h"
26-
#include "components/timer/TimerController.h"
2717

2818
namespace Pinetime {
29-
namespace System {
30-
class SystemTask;
31-
};
19+
namespace Drivers {
20+
class St7789;
21+
class Cst816S;
22+
class WatchdogView;
23+
}
3224
namespace Controllers {
25+
class Settings;
26+
class Battery;
27+
class Ble;
28+
class DateTime;
29+
class NotificationManager;
30+
class HeartRateController;
31+
class MotionController;
3332
class TouchHandler;
33+
class MotorController;
34+
class TimerController;
3435
}
36+
37+
namespace System {
38+
class SystemTask;
39+
};
40+
3541
namespace Applications {
3642
class DisplayApp {
3743
public:

0 commit comments

Comments
 (0)