smooth: fix resetting
This commit is contained in:
parent
ee038d5de5
commit
43116be122
1 changed files with 5 additions and 1 deletions
6
smooth.c
6
smooth.c
|
@ -266,13 +266,17 @@ SMT_GetOffset(struct timeval *now)
|
||||||
void
|
void
|
||||||
SMT_Reset(struct timeval *now)
|
SMT_Reset(struct timeval *now)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
if (!enabled)
|
if (!enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
locked = 1;
|
|
||||||
smooth_offset = 0.0;
|
smooth_offset = 0.0;
|
||||||
smooth_freq = 0.0;
|
smooth_freq = 0.0;
|
||||||
last_update = *now;
|
last_update = *now;
|
||||||
|
|
||||||
|
for (i = 0; i < NUM_STAGES; i++)
|
||||||
|
stages[i].wander = stages[i].length = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue