Provide a value for the zero-data case
Really this just suppresses the compiler warning that 'trough' is not used.
This commit is contained in:
parent
57a2f9e940
commit
31b1475995
1
bpm.c
1
bpm.c
|
|
@ -141,6 +141,7 @@ double scan_for_bpm(float nrg[], size_t len,
|
||||||
step = (slowest - fastest) / steps;
|
step = (slowest - fastest) / steps;
|
||||||
|
|
||||||
height = INFINITY;
|
height = INFINITY;
|
||||||
|
trough = NAN;
|
||||||
|
|
||||||
for (interval = fastest; interval <= slowest; interval += step) {
|
for (interval = fastest; interval <= slowest; interval += step) {
|
||||||
double t;
|
double t;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue