Skip to content

Commit

Permalink
fixed emscripten build
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Mar 18, 2020
1 parent a82cf1e commit 4c1e164
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/eez/gui/action_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,13 @@ void action_show_sys_settings_ethernet() {
}

void action_show_sys_settings_ethernet_error() {
#if OPTION_ETHERNET
if (persist_conf::devConf.mqttEnabled && mqtt::g_connectionState == mqtt::CONNECTION_STATE_ERROR) {
pushPage(PAGE_ID_SYS_SETTINGS_MQTT);
} else {
pushPage(PAGE_ID_SYS_SETTINGS_ETHERNET);
}
#endif
}

void action_show_sys_settings_protections() {
Expand Down
4 changes: 2 additions & 2 deletions src/eez/modules/psu/gui/psu.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ class PsuAppContext : public AppContext {
bool isAutoRepeatAction(int action) override;
void onPageTouch(const WidgetCursor &foundWidget, Event &touchEvent) override;
bool testExecuteActionOnTouchDown(int action) override;
bool canExecuteActionWhenTouchedOutsideOfActivePage(int pageId, int action);
void updatePage(int i, WidgetCursor &widgetCursor);
bool canExecuteActionWhenTouchedOutsideOfActivePage(int pageId, int action) override;
void updatePage(int i, WidgetCursor &widgetCursor) override;

private:
void doShowProgressPage();
Expand Down
2 changes: 1 addition & 1 deletion src/eez/platform/simulator/front_panel.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace gui {

class FrontPanelAppContext : public AppContext {
public:
void stateManagment();
void stateManagment() override;

int getLongTouchActionHook(const WidgetCursor &widgetCursor) override;

Expand Down

0 comments on commit 4c1e164

Please sign in to comment.