Skip to content

Commit

Permalink
model presets wizard: allow exit with short RTN
Browse files Browse the repository at this point in the history
  • Loading branch information
offer-shmuely committed Apr 3, 2024
1 parent 5b47fcd commit ff7f6dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdcard/c480x272/SCRIPTS/PRESETS/engine/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,13 @@ local function state_ON_END(event, touchState)
lcd.drawBitmap(ImgSummary, 300, 60)

lcd.drawText(70, 90, "Model successfully updated!", COLOR_THEME_PRIMARY1)
lcd.drawText(100, 130, "Hold [RTN] to exit.", COLOR_THEME_PRIMARY1)
lcd.drawText(100, 130, "[TAP] or [RTN] to exit.", COLOR_THEME_PRIMARY1)

if event == EVT_TOUCH_FIRST then
if (event == EVT_TOUCH_FIRST) or (event == EVT_VIRTUAL_EXIT) then
log("state_ON_END() - exit")
return 2
end

return 0
end
---------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit ff7f6dd

Please sign in to comment.