mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
Patch from W9MDB: adds braces to make code in qra64.c more readable.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7802 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
34070d107d
commit
4786fbd866
@ -345,12 +345,15 @@ int qra64_decode(qra64codec *pcodec, float *ebno, int *x, const float *rxen)
|
||||
ebnoval = ebnoval*57.03f/(57.03f-ebnoval);
|
||||
|
||||
// compute value in dB
|
||||
if (ebnoval<=0)
|
||||
ebnoval = EBNO_MIN; // assume a minimum, positive value
|
||||
else
|
||||
ebnoval = 10.0f*(float)log10(ebnoval);
|
||||
if (ebnoval<EBNO_MIN)
|
||||
ebnoval = EBNO_MIN;
|
||||
if (ebnoval<=0) {
|
||||
ebnoval = EBNO_MIN; // assume a minimum, positive value
|
||||
}
|
||||
else {
|
||||
ebnoval = 10.0f*(float)log10(ebnoval);
|
||||
if (ebnoval<EBNO_MIN) {
|
||||
ebnoval = EBNO_MIN;
|
||||
}
|
||||
}
|
||||
|
||||
*ebno = ebnoval;
|
||||
|
||||
@ -534,12 +537,15 @@ int qra64_decode_fastfading(
|
||||
ebnoval = 1.0f/(1.0f*QRA64_K/QRA64_N*QRA64_m)*esno;
|
||||
|
||||
// compute value in dB
|
||||
if (ebnoval<=0)
|
||||
if (ebnoval<=0) {
|
||||
ebnoval = EBNO_MIN; // assume a minimum, positive value
|
||||
else
|
||||
}
|
||||
else {
|
||||
ebnoval = 10.0f*(float)log10(ebnoval);
|
||||
if (ebnoval<EBNO_MIN)
|
||||
if (ebnoval<EBNO_MIN) {
|
||||
ebnoval = EBNO_MIN;
|
||||
}
|
||||
}
|
||||
|
||||
*ebno = ebnoval;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user