Solved error in marker search

multi_trace
erikkaashoek 5 years ago
parent 30a80cf90a
commit 7188755e6e

@ -2152,7 +2152,7 @@ int index_of_frequency(freq_t f) // Search which index in the frequency tab
return -1;
if (f > frequencies[sweep_points-1])
return -1;
int i = (f + (f_step >> 1)) / f_step;
int i = ((f - frequencies[0] ) + (f_step >> 1)) / f_step;
return i;
#if 0
// int R = (sizeof frequencies)/sizeof(int) - 1;

Loading…
Cancel
Save

Powered by TurnKey Linux.