Fix introduced CPU consumption bug.

This commit is contained in:
Nick Foster
2013-06-05 17:50:25 -04:00
parent 79aee53a52
commit a847f5f875
3 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ int air_modes_preamble::general_work(int noutput_items,
if(!valid_preamble) continue;
//be sure we've got enough room in the input buffer to copy out a whole packet
if(ninputs-i < d_check_width) {
if(ninputs-i < 240*d_samples_per_chip) {
consume_each(std::max(i-1,0));
if(0) std::cout << "Preamble consumed " << std::max(i-1,0) << ", returned 0 (no room)" << std::endl;
return 0;