You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// we've come out of powersave, reset the algorithm
1651
1653
stepcount_init();
1652
1654
}
1653
-
if (powerSaveTimer<POWER_SAVE_TIMEOUT) {
1655
+
if ((powerSaveTimer<POWER_SAVE_TIMEOUT) && !stepCounterDisabled) {
1654
1656
// only do step counting if power save is off (otherwise accel interval is too low - also wastes power)
1655
1657
intnewSteps=stepcount_new(accMagSquared);
1656
1658
if (newSteps>0) {
@@ -2742,6 +2744,7 @@ call `E.kickWatchdog()` from your code or the watch will reset after ~5 seconds.
2742
2744
* `seaLevelPressure` (Bangle.js 2) Default 1013.25 millibars - this is used when calculating altitude from pressure sensor values from `Bangle.getPressure`/`pressure` events.
2743
2745
* `lcdBufferPtr` (Bangle.js 2 2v21+) Return a pointer to the first pixel of the 3 bit graphics buffer used by Bangle.js for the screen (stride = 178 bytes)
2744
2746
* `lcdDoubleRefresh` (Bangle.js 2 2v22+) If enabled, pulses EXTCOMIN twice per poll interval (avoids off-axis flicker)
2747
+
* `stepCounterDisabled` (Bangle.js 2v29+) If set, this stops steps from being counted
2745
2748
2746
2749
Where accelerations are used they are in internal units, where `8192 = 1g`
0 commit comments