aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2019-07-17 10:26:00 +0200
committerPiotr Krysik <ptrkrysik@gmail.com>2019-07-18 10:33:49 +0200
commit59257a11a3e3916cd30624f99a5cd565df16ed6e (patch)
tree423ec3e0c2f9d5374af297f3d2e68a8c79fe9071
parent9e861d7017854bae15c52dc4381394f9350d2060 (diff)
receiver: removed redundant parameter from synchronized_handler
-rw-r--r--lib/receiver/receiver_impl.cc7
-rw-r--r--lib/receiver/receiver_impl.h3
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/receiver/receiver_impl.cc b/lib/receiver/receiver_impl.cc
index c88740a..bd4f182 100644
--- a/lib/receiver/receiver_impl.cc
+++ b/lib/receiver/receiver_impl.cc
@@ -183,7 +183,7 @@ namespace gr
sch_search_handler(input, noutput_items);
break;
case synchronized:
- synchronized_handler(input, input_items, noutput_items);
+ synchronized_handler(input_items, noutput_items);
break;
}
@@ -295,13 +295,14 @@ namespace gr
}
void
- receiver_impl::synchronized_handler(gr_complex *input,
- gr_vector_const_void_star &input_items, int noutput_items)
+ receiver_impl::synchronized_handler(gr_vector_const_void_star &input_items,
+ int noutput_items)
{
/**
* In this state receiver is synchronized and it processes
* bursts according to burst type for given burst number
*/
+ gr_complex *input = (gr_complex *) input_items[0];
std::vector<gr_complex> channel_imp_resp(CHAN_IMP_RESP_LENGTH * d_OSR);
size_t inputs_to_process = d_cell_allocation.size();
unsigned char output_binary[BURST_SIZE];
diff --git a/lib/receiver/receiver_impl.h b/lib/receiver/receiver_impl.h
index bc11879..375c952 100644
--- a/lib/receiver/receiver_impl.h
+++ b/lib/receiver/receiver_impl.h
@@ -209,6 +209,7 @@ namespace gr {
/* State machine handlers */
void fcch_search_handler(gr_complex *input, int noutput_items);
void sch_search_handler(gr_complex *input, int noutput_items);
+ void synchronized_handler(gr_vector_const_void_star &input_items, int noutput_items);
uint64_t get_offset_before_resampler(uint64_t offset){
std::vector<tag_t> original_ofsets;
@@ -222,8 +223,6 @@ namespace gr {
}
return offset_before_resampler;
};
- void synchronized_handler(gr_complex *input,
- gr_vector_const_void_star &input_items, int noutput_items);
public:
receiver_impl(