Forum: GNU Radio callback function called twice

Posted by Nemanja Savic (Guest)
on 2013-02-27 14:17
(Received via mailing list)
Hi again GNURADIOers,

I have a set member function which is also used as a callback from GRC. 
It
looks like this:

void
test_file_sink::set_sensitivity(double milisecond)
{
    d_n_samples = (unsigned
int)(milisecond*d_sample_rate/1000.0)*d_itemsize;
  printf("\nd_n_samples: %d\n", d_n_samples);
    init_old_data_buff();
}

When I run flowgraph, and change "sensitivity", my callback function is
called twice.
Is this normal action?

Best
Posted by Nemanja Savic (Guest)
on 2013-02-28 09:54
(Received via mailing list)
Was any nonsense in previous post?
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.