From 2134ca103d65eb9432bb83a37d53ca65fb261902 Mon Sep 17 00:00:00 2001 From: Ronin0000 <89286474+Ronin0000@users.noreply.github.com> Date: Fri, 4 Feb 2022 07:00:13 -0800 Subject: [PATCH] Update app.js --- apps/torch/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/torch/app.js b/apps/torch/app.js index 9504f3ac0..864efb883 100644 --- a/apps/torch/app.js +++ b/apps/torch/app.js @@ -14,5 +14,6 @@ g.setColor(settings.bg); g.fillRect(0,0,g.getWidth(),g.getHeight()); // Any button turns off setWatch(()=>load(), BTN1); -setWatch(()=>load(), BTN2); -setWatch(()=>load(), BTN3); +if (global.BTN2) setWatch(()=>load(), BTN2); +if (global.BTN3) setWatch(()=>load(), BTN3); +