From 97e6d54f8965cfe3b7dd38605355d484d1aa8b56 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Wed, 30 Jun 2021 10:18:21 +0100 Subject: [PATCH] Quick about tweak to make it work if only one button --- apps/about/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/about/app.js b/apps/about/app.js index 9edd0c94f..b95b8bbd0 100644 --- a/apps/about/app.js +++ b/apps/about/app.js @@ -37,5 +37,7 @@ g.drawString(NRF.getAddress(),g.getWidth()/2,g.getHeight()-8,true); g.flip(); setWatch(_=>load(), BTN1); -setWatch(_=>load(), BTN2); -setWatch(_=>load(), BTN3); +if (global.BTN2) { + setWatch(_=>load(), BTN2); + setWatch(_=>load(), BTN3); +}