Skip to content

Commit

Permalink
When step counter is reset at midnight, also publish step event with …
Browse files Browse the repository at this point in the history
…0 steps.
  • Loading branch information
jakkra committed Oct 10, 2024
1 parent 948e8c6 commit 1d790ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/sensors/zsw_imu.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ static void zbus_periodic_slow_callback(const struct zbus_channel *chan)
{
zsw_timeval_t time;
struct accel_event evt = {
.data.type = ZSW_IMU_EVT_TYPE_STEP,
.data.data.step.count = 0
};
zsw_clock_get_time(&time);

Expand Down

0 comments on commit 1d790ae

Please sign in to comment.