From 5dbf7205b01f52aa320c5fb0aaaba721c8f8658d Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Thu, 3 Nov 2022 18:08:16 +0100 Subject: [PATCH] Exit with short press of BTN1 --- apps/calculator/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/calculator/app.js b/apps/calculator/app.js index 40953254e..c93b36e43 100644 --- a/apps/calculator/app.js +++ b/apps/calculator/app.js @@ -402,6 +402,7 @@ if (process.env.HWVERSION==1) { swipeEnabled = false; drawGlobal(); } else { // touchscreen? + setWatch(load, BTN1, {edge:"falling"}); // Exit with a short press to physical button selected = "NONE"; swipeEnabled = true; prepareScreen(numbers, numbersGrid, COLORS.DEFAULT); @@ -440,5 +441,4 @@ if (process.env.HWVERSION==1) { }); } - displayOutput(0);