Exit with short press of BTN1

pull/2219/head
thyttan 2022-11-03 18:08:16 +01:00 committed by GitHub
parent 5374b1af30
commit 5dbf7205b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -402,6 +402,7 @@ if (process.env.HWVERSION==1) {
swipeEnabled = false; swipeEnabled = false;
drawGlobal(); drawGlobal();
} else { // touchscreen? } else { // touchscreen?
setWatch(load, BTN1, {edge:"falling"}); // Exit with a short press to physical button
selected = "NONE"; selected = "NONE";
swipeEnabled = true; swipeEnabled = true;
prepareScreen(numbers, numbersGrid, COLORS.DEFAULT); prepareScreen(numbers, numbersGrid, COLORS.DEFAULT);
@ -440,5 +441,4 @@ if (process.env.HWVERSION==1) {
}); });
} }
displayOutput(0); displayOutput(0);