Skip to content

fix: store actual step counts in sensor windows#13

Merged
JanJetze merged 1 commit intomasterfrom
fix/store-step-counts-in-sensor-windows
Mar 8, 2026
Merged

fix: store actual step counts in sensor windows#13
JanJetze merged 1 commit intomasterfrom
fix/store-step-counts-in-sensor-windows

Conversation

@JanJetze
Copy link
Copy Markdown
Owner

@JanJetze JanJetze commented Mar 8, 2026

Summary

  • SensorWindow.stepCount was hardcoded to 0, causing the Activities screen to show no steps and an empty step graph for real (non-test) data
  • Added windowStepAccumulator (AtomicInteger) that collects step events between 30-second classifier evaluations
  • Each sensor window now persists the real step count accumulated during its interval

Test plan

  • Unit tests pass
  • Verified on emulator: simulated walking produces sensor windows with correct step counts
  • Activities screen shows step graph and session step counts with real data
  • Dashboard step counter continues to work independently

…zero

SensorWindow.stepCount was always written as 0, causing the Activities
screen to show no steps for any session. Added a windowStepAccumulator
that collects step events between classifier evaluations and persists
the real count with each 30-second window.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JanJetze JanJetze merged commit a13fbdb into master Mar 8, 2026
1 check failed
@JanJetze JanJetze deleted the fix/store-step-counts-in-sensor-windows branch March 8, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant