Disable tap detection by default, simplify tracking

This commit is contained in:
2026-03-24 23:30:06 +01:00
parent 14e9c96f55
commit a7082c9022
3 changed files with 7 additions and 34 deletions

View File

@@ -61,7 +61,7 @@ static void lsmWrite(uint8_t reg, uint8_t val) {
Wire1.endTransmission();
}
// ISR
// ISR
static void imuInt1ISR() {
imuWakeFlag = true;
}
@@ -206,10 +206,8 @@ void sleepManagerWakeIMU() {
// Reset motion filter state to prevent a cursor jump on the first frame.
extern float accumX, accumY;
extern float prevAx, prevAy, prevAz;
extern unsigned long lastTime;
accumX = accumY = 0.0f;
prevAx = 0.0f; prevAy = 0.0f; prevAz = 0.0f;
lastTime = millis();
sleepStage = SLEEP_AWAKE;