Fix non-prime deltas
Signed-off-by: Jan Hamal Dvořák <mordae@anilinux.org>
This commit is contained in:
parent
c5ce6f11cb
commit
16492ce7ee
1 changed files with 4 additions and 0 deletions
|
@ -508,11 +508,15 @@ static void rf_rx(void)
|
||||||
#if PRIME_DELTA
|
#if PRIME_DELTA
|
||||||
while (!is_prime_or_one(--delta_watermark))
|
while (!is_prime_or_one(--delta_watermark))
|
||||||
;
|
;
|
||||||
|
#else
|
||||||
|
delta_watermark--;
|
||||||
#endif
|
#endif
|
||||||
} else if (delta > (delta_watermark + acceptable_deviation)) {
|
} else if (delta > (delta_watermark + acceptable_deviation)) {
|
||||||
#if PRIME_DELTA
|
#if PRIME_DELTA
|
||||||
while (!is_prime_or_one(++delta_watermark))
|
while (!is_prime_or_one(++delta_watermark))
|
||||||
;
|
;
|
||||||
|
#else
|
||||||
|
delta_watermark++;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue