Skip to content

Commit

Permalink
gui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Mar 23, 2020
1 parent e5e2ac7 commit 284ddf5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 9 additions & 1 deletion modular-psu-firmware.eez-project
Original file line number Diff line number Diff line change
Expand Up @@ -536990,6 +536990,14 @@
"response": {
"type": "nr2"
}
},
{
"name": "SYSTem:MEASure[:SCALar][:VOLTage][:DC]?",
"parameters": [],
"response": {
"type": "discrete",
"enumeration": "SystemMeasureVoltage"
}
}
]
},
Expand Down Expand Up @@ -538302,7 +538310,7 @@
"name": "SystemMeasureVoltage",
"members": [
{
"name": "VBAT",
"name": "RTC",
"value": "1"
}
]
Expand Down
6 changes: 5 additions & 1 deletion src/eez/gui/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ int getAction(const WidgetCursor &widgetCursor) {
}

void onPageTouch(const WidgetCursor &foundWidget, Event &touchEvent) {
foundWidget.appContext->onPageTouch(foundWidget, touchEvent);
if (foundWidget.appContext) {
foundWidget.appContext->onPageTouch(foundWidget, touchEvent);
} else {
getRootAppContext().onPageTouch(foundWidget, touchEvent);
}
}

void onInternalPageTouch(const WidgetCursor &widgetCursor, Event &touchEvent) {
Expand Down

0 comments on commit 284ddf5

Please sign in to comment.