merged -r5966:6112 on trondeau/ofdm_mod. Allows for generic constellations (supports...
[debian/gnuradio] / gnuradio-core / src / lib / general / gr_ofdm_sampler.cc
index 02897bb6b112c639eb881d8a830e88f60e7c0f33..56b5d50a4e761ed87d61cef6ab7f9cf328709948 100644 (file)
@@ -69,11 +69,12 @@ gr_ofdm_sampler::general_work (int noutput_items,
 
   int i=d_fft_length-1;
 
-  while(!found && i<std::min(ninput_items[0],ninput_items[1]) )
+  while(!found && i<std::min(ninput_items[0],ninput_items[1]) ) {
     if(trigger[i])
       found = 1;
     else
       i++;
+  }
 
   if(found) {
     assert(i-d_fft_length+1 >= 0);
@@ -89,6 +90,5 @@ gr_ofdm_sampler::general_work (int noutput_items,
     //  ninput_items[0], ninput_items[1], noutput_items, (i-d_fft_length+1), found);
  }
 
-
   return found;
 }