|
32 | 32 | #include <tactility/lvgl_module.h> |
33 | 33 |
|
34 | 34 | #ifdef ESP_PLATFORM |
| 35 | +#include "tactility/drivers/root.h" |
35 | 36 | #include <Tactility/InitEsp.h> |
36 | 37 | #endif |
37 | 38 |
|
@@ -61,8 +62,6 @@ namespace service { |
61 | 62 | namespace statusbar { extern const ServiceManifest manifest; } |
62 | 63 | #ifdef ESP_PLATFORM |
63 | 64 | namespace displayidle { extern const ServiceManifest manifest; } |
64 | | -#endif |
65 | | -#if defined(ESP_PLATFORM) && defined(CONFIG_TT_DEVICE_LILYGO_TDECK) |
66 | 65 | namespace keyboardidle { extern const ServiceManifest manifest; } |
67 | 66 | #endif |
68 | 67 | #if TT_FEATURE_SCREENSHOT_ENABLED |
@@ -112,11 +111,10 @@ namespace app { |
112 | 111 | #ifdef ESP_PLATFORM |
113 | 112 | namespace crashdiagnostics { extern const AppManifest manifest; } |
114 | 113 | namespace webserversettings { extern const AppManifest manifest; } |
| 114 | +#if CONFIG_TT_TDECK_WORKAROUND == 1 |
| 115 | + namespace keyboardsettings { extern const AppManifest manifest; } // T-Deck only for now |
| 116 | + namespace trackballsettings { extern const AppManifest manifest; } // T-Deck only for now |
115 | 117 | #endif |
116 | | - |
117 | | -#if defined(ESP_PLATFORM) && defined(CONFIG_TT_DEVICE_LILYGO_TDECK) |
118 | | - namespace keyboardsettings { extern const AppManifest manifest; } |
119 | | - namespace trackballsettings { extern const AppManifest manifest; } |
120 | 118 | #endif |
121 | 119 |
|
122 | 120 | #if TT_FEATURE_SCREENSHOT_ENABLED |
@@ -162,11 +160,10 @@ static void registerInternalApps() { |
162 | 160 | addAppManifest(app::webserversettings::manifest); |
163 | 161 | addAppManifest(app::crashdiagnostics::manifest); |
164 | 162 | addAppManifest(app::development::manifest); |
| 163 | +#if defined(CONFIG_TT_TDECK_WORKAROUND) |
| 164 | + addAppManifest(app::keyboardsettings::manifest); |
| 165 | + addAppManifest(app::trackballsettings::manifest); |
165 | 166 | #endif |
166 | | - |
167 | | -#if defined(ESP_PLATFORM) && defined(CONFIG_TT_DEVICE_LILYGO_TDECK) |
168 | | - addAppManifest(app::keyboardsettings::manifest); |
169 | | - addAppManifest(app::trackballsettings::manifest); |
170 | 167 | #endif |
171 | 168 |
|
172 | 169 | #if defined(CONFIG_TINYUSB_MSC_ENABLED) && CONFIG_TINYUSB_MSC_ENABLED |
@@ -251,13 +248,13 @@ static void registerAndStartSecondaryServices() { |
251 | 248 | addService(service::loader::manifest); |
252 | 249 | addService(service::gui::manifest); |
253 | 250 | addService(service::statusbar::manifest); |
254 | | -#ifdef ESP_PLATFORM |
| 251 | + addService(service::memorychecker::manifest); |
| 252 | +#if defined(ESP_PLATFORM) |
255 | 253 | addService(service::displayidle::manifest); |
256 | | -#endif |
257 | | -#if defined(ESP_PLATFORM) && defined(CONFIG_TT_DEVICE_LILYGO_TDECK) |
| 254 | +#if defined(CONFIG_TT_TDECK_WORKAROUND) |
258 | 255 | addService(service::keyboardidle::manifest); |
259 | 256 | #endif |
260 | | - addService(service::memorychecker::manifest); |
| 257 | +#endif |
261 | 258 | #if TT_FEATURE_SCREENSHOT_ENABLED |
262 | 259 | addService(service::screenshot::manifest); |
263 | 260 | #endif |
|
0 commit comments