fix segfault + upper limit for bits

This commit is contained in:
Bastian Bloessl
2015-04-14 16:18:46 +02:00
parent 00a6a9c662
commit f64f72af91
3 changed files with 34 additions and 31 deletions
+2 -2
View File
@@ -82,8 +82,8 @@ int general_work(int noutput, gr_vector_int& ninput_items,
// ############ INSERT MAC STUFF
tx_param tx(d_ofdm, psdu_length);
if(tx.n_sym > MAX_NUM_SYM) {
std::cout << "packet too large, maximum number of symbols is " << MAX_NUM_SYM << std::endl;
if(tx.n_sym > MAX_SYM) {
std::cout << "packet too large, maximum number of symbols is " << MAX_SYM << std::endl;
return 0;
}