Skip to content

Commit cdfb4d6

Browse files
committed
Bangle_setUI_F18: add btnRelease (read below)
Explicitly state button should fire on falling edge. Does not change `btn` mapped handlers to act on rising edge just jet. As per suggestion in espruino#2571 (comment).
1 parent 269b3e3 commit cdfb4d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/js/banglejs/Bangle_setUI_F18.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
Bangle.swipeHandler = options.swipe;
7070
Bangle.on("swipe", Bangle.swipeHandler);
7171
}
72-
if (options.btn) {
72+
if (options.btn || options.btnRelease) {
7373
Bangle.btnWatches = [
7474
setWatch(function() { options.btn(1); }, BTN1, {repeat:1,edge:"falling"}),
7575
setWatch(function() { options.btn(2); }, BTN2, {repeat:1,edge:"falling"}),

0 commit comments

Comments
 (0)