second try: fix NaN

git-svn-id: http://op25.osmocom.org/svn/trunk@234 65a5c917-d112-43f1-993d-58c26a4786be
This commit is contained in:
max 2010-12-30 20:56:13 +00:00
parent d4e003bee8
commit e0785ae0d3
1 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,9 @@ void repeater_gardner_costas_cc::set_omega (float omega) {
d_max_omega = omega*(1.0 + d_omega_rel);
d_omega_mid = 0.5*(d_min_omega+d_max_omega);
d_twice_sps = 2 * (int) ceilf(d_omega);
d_dl = new gr_complex[d_twice_sps*2];
int num_complex = std::max(d_twice_sps*2, 16);
d_dl = new gr_complex[num_complex];
memset(d_dl, 0, num_complex * sizeof(gr_complex));
}
repeater_gardner_costas_cc::~repeater_gardner_costas_cc ()