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:
Mark Hills 2013-05-21 21:29:50 +01:00
parent 57a2f9e940
commit 31b1475995
1 changed files with 1 additions and 0 deletions

1
bpm.c
View File

@ -141,6 +141,7 @@ double scan_for_bpm(float nrg[], size_t len,
step = (slowest - fastest) / steps;
height = INFINITY;
trough = NAN;
for (interval = fastest; interval <= slowest; interval += step) {
double t;