fix: Set haptic feedback duration for button presses to 30ms

This commit is contained in:
2026-03-14 18:22:37 -06:00
committed by Tanner
parent 95cc91781d
commit 8ed03143bd
+3 -3
View File
@@ -554,7 +554,7 @@ function buttonPress(val) {
} }
break; break;
case 'B': case 'B':
Bangle.buzz(); Bangle.buzz(30);
if (isDecimal) { if (isDecimal) {
isDecimal = false; isDecimal = false;
displayOutput(currNumber); displayOutput(currNumber);
@@ -585,7 +585,7 @@ function buttonPress(val) {
if (swipeEnabled) drawNumbers(); if (swipeEnabled) drawNumbers();
break; break;
case '.': case '.':
Bangle.buzz(); Bangle.buzz(30);
specials.R.val = 'C'; specials.R.val = 'C';
if (!swipeEnabled) drawKey('R', specials.R); if (!swipeEnabled) drawKey('R', specials.R);
isDecimal = true; isDecimal = true;
@@ -646,7 +646,7 @@ function buttonPress(val) {
} }
break; break;
default: { default: {
Bangle.buzz(); Bangle.buzz(30);
specials.R.val = 'C'; specials.R.val = 'C';
if (!swipeEnabled) drawKey('R', specials.R); if (!swipeEnabled) drawKey('R', specials.R);
const is0Negative = (currNumber === 0 && 1/currNumber === -Infinity); const is0Negative = (currNumber === 0 && 1/currNumber === -Infinity);