diff --git a/apps/bwclk/README.md b/apps/bwclk/README.md index 8cf3120dd..eb5356a7e 100644 --- a/apps/bwclk/README.md +++ b/apps/bwclk/README.md @@ -20,13 +20,15 @@ and click up/down to move into this sub-menu. You can then click in the middle o to e.g. send a trigger via HomeAssistant once you selected it. ``` - Bpm ... - | | - Steps 10 min. ... ... - | | | | - Battery 5 min Temp. Trigger1 - | | | | + +5min + | Bangle -- Timer[Optional] -- Weather[Optional] -- HomeAssistant [Optional] + | | | | + Bpm -5min Temperature Trigger1 + | | | + Steps ... ... + | + Battery ``` ## Settings diff --git a/apps/bwclk/app.js b/apps/bwclk/app.js index fa8401b2e..f95e9a6cf 100644 --- a/apps/bwclk/app.js +++ b/apps/bwclk/app.js @@ -166,17 +166,8 @@ function imgHomeAssistant() { /************ * 2D MENU with entries of: - * [name, icon, opt[customUpFun], opt[customDownFun], opt[customCenterFun]] + * [name, icon, opt[customDownFun], opt[customUpFun], opt[customCenterFun]] * - * An example is shown below: - * - * Bpm ... - * | | - * Steps 10 min. ... ... - * | | | | - * Battery 5-min Temp. Trigger1 - * | | | | - * BangleJs -- Timer -- Weather[Optional] -- HomeAssistant [Optional] */ var menu = [ [ @@ -198,7 +189,7 @@ try{ menu.push([ function(){ var text = isAlarmEnabled() ? getAlarmMinutes() + " min." : "Timer"; - return [text, imgTimer(), () => increaseAlarm(), () => decreaseAlarm(), null ] + return [text, imgTimer(), () => decreaseAlarm(), () => increaseAlarm(), null ] }, ]); } catch(ex) { @@ -543,7 +534,7 @@ Bangle.on('touch', function(btn, e){ var is_right = e.x > right && !is_upper && !is_lower; var is_center = !is_upper && !is_lower && !is_left && !is_right; - if(is_upper){ + if(is_lower){ if(e.y < widget_size){ return; } @@ -560,7 +551,7 @@ Bangle.on('touch', function(btn, e){ drawTime(); } - if(is_lower){ + if(is_upper){ Bangle.buzz(40, 0.6); settings.menuPosY = settings.menuPosY-1; settings.menuPosY = settings.menuPosY < 0 ? menu[settings.menuPosX].length-1 : settings.menuPosY;