projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b99a1a
)
fix type in bcm4501 snr dB calculation
author
ghost
<andreas.monzner@multimedia-labs.de>
Sat, 22 Nov 2008 11:14:43 +0000
(12:14 +0100)
committer
ghost
<andreas.monzner@multimedia-labs.de>
Sat, 22 Nov 2008 11:14:43 +0000
(12:14 +0100)
lib/dvb/frontend.cpp
patch
|
blob
|
history
diff --git
a/lib/dvb/frontend.cpp
b/lib/dvb/frontend.cpp
index
b0e92d3
..
a74e65c
100644
(file)
--- 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 in
t SDS_SNRE = snr << 16;
+
floa
t 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];