|
16 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | */ |
18 | 18 |
|
| 19 | +#if OPTION_DISPLAY |
| 20 | + |
19 | 21 | #include <math.h> |
20 | 22 | #include <assert.h> |
21 | 23 |
|
22 | | -#include <eez/gui/app_context.h> |
| 24 | +#include <eez/index.h> |
| 25 | +#include <eez/sound.h> |
| 26 | +#include <eez/system.h> |
23 | 27 |
|
24 | | -#if OPTION_DISPLAY |
| 28 | +#include <eez/gui/gui.h> |
| 29 | +#include <eez/gui/widgets/button.h> |
25 | 30 |
|
26 | | -// TODO this must be removed from here |
27 | 31 | #include <eez/modules/psu/psu.h> |
28 | | - |
29 | 32 | #include <eez/modules/psu/devices.h> |
30 | 33 | #include <eez/modules/psu/idle.h> |
31 | | - |
32 | 34 | #include <eez/modules/psu/gui/psu.h> |
33 | | -// |
34 | | - |
35 | | -#include <eez/gui/assets.h> |
36 | | -#include <eez/gui/dialogs.h> |
37 | | -#include <eez/gui/draw.h> |
38 | | -#include <eez/gui/gui.h> |
39 | | -#include <eez/gui/touch.h> |
40 | | -#include <eez/gui/update.h> |
41 | | -#include <eez/gui/widgets/button.h> |
42 | | -#include <eez/index.h> |
43 | | -#include <eez/modules/mcu/display.h> |
44 | | -#include <eez/sound.h> |
45 | | -#include <eez/system.h> |
46 | 35 |
|
47 | 36 | #define CONF_GUI_TOAST_DURATION_MS 2000L |
48 | 37 |
|
@@ -163,7 +152,7 @@ void AppContext::onPageChanged(int previousPageId, int activePageId) { |
163 | 152 | } |
164 | 153 |
|
165 | 154 | void AppContext::doShowPage(int pageId, Page *page, int previousPageId) { |
166 | | - page = page ? page : getPageFromId(pageId); |
| 155 | + page = page ? page : getPageFromIdHook(pageId); |
167 | 156 |
|
168 | 157 | m_pageNavigationStack[m_pageNavigationStackPointer].page = page; |
169 | 158 | m_pageNavigationStack[m_pageNavigationStackPointer].pageId = pageId; |
|
0 commit comments