mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
need to break out of the other loop as well
This commit is contained in:
parent
fab9498fef
commit
aa47a2f9e3
1 changed files with 4 additions and 1 deletions
|
|
@ -318,9 +318,12 @@ struct Decoder : Common
|
|||
tone[i] *= nrz(seq1());
|
||||
for (int i = 0; i < tone_count; ++i)
|
||||
demod[i] = demod_or_erase(tone[i], chan[i]);
|
||||
bool pts_fail = false;
|
||||
for (int i = 0; i < pts_count; ++i)
|
||||
if (!partial_transmit_sequence(i, pts_count))
|
||||
if ((pts_fail = !partial_transmit_sequence(i, pts_count)))
|
||||
break;
|
||||
if (pts_fail)
|
||||
break;
|
||||
for (int i = 0; i < pilot_tones; ++i) {
|
||||
index[i] = tone_off + block_length * i + pilot_off;
|
||||
phase[i] = arg(demod[block_length*i+pilot_off]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue