Skip to content

Commit 6a1eab9

Browse files
authored
Enable haptics feedback in clock_info, add run haptics as part of that
1 parent 52bf100 commit 6a1eab9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/clock_info/lib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ exports.loadSettings = function() {
2323
hrmOn : 0, // 0(Always), 1(Tap)
2424
defocusOnLock : true,
2525
maxAltitude : 3000,
26-
haptics:false,
26+
haptics:true,
2727
apps : {}
2828
},
2929
require("Storage").readJSON("clock_info.json",1)||{}
@@ -358,7 +358,7 @@ exports.addInteractive = function(menu, options) {
358358
if (!options.focus) {
359359
focus();
360360
} else if (menu[options.menuA].items[options.menuB].run) {
361-
Bangle.buzz(100, 0.7);
361+
if(settings.haptics) Bangle.buzz(100, 0.7);
362362
menu[options.menuA].items[options.menuB].run(options); // allow tap on an item to run it (eg home assistant)
363363
}
364364
};

0 commit comments

Comments
 (0)