diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2008-11-22 12:14:43 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2008-11-22 12:14:43 +0100 |
| commit | 7049be52bf2235dfb848b28dcd9aa44eb204771c (patch) | |
| tree | 442b108bdb1a42240318709e672d5d74b78c2b91 /lib/dvb/frontend.cpp | |
| parent | 7b99a1af4abb7fdd77889feabe6bbd08d6c1d343 (diff) | |
| download | enigma2-7049be52bf2235dfb848b28dcd9aa44eb204771c.tar.gz enigma2-7049be52bf2235dfb848b28dcd9aa44eb204771c.zip | |
fix type in bcm4501 snr dB calculation
Diffstat (limited to 'lib/dvb/frontend.cpp')
| -rw-r--r-- | lib/dvb/frontend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp index b0e92d39..a74e65ca 100644 --- a/lib/dvb/frontend.cpp +++ b/lib/dvb/frontend.cpp @@ -728,7 +728,7 @@ int eDVBFrontend::readFrontendData(int type) eDebug("FE_READ_SNR failed (%m)"); if (!strcmp(m_description, "BCM4501 (internal)")) { - unsigned int SDS_SNRE = snr << 16; + float SDS_SNRE = snr << 16; float snr_in_db; if (parm_u_qpsk_fec_inner <= FEC_AUTO) // DVB-S1 / QPSK @@ -748,7 +748,7 @@ int eDVBFrontend::readFrontendData(int type) if (fval1 < 10.0) { fval2 = SNR_COEFF[0]; - for (int i=0; i<6; ++i) + for (int i=1; i<6; ++i) { fval2 *= fval1; fval2 += SNR_COEFF[i]; |
