summaryrefslogtreecommitdiffstats
path: root/src/af903x-fe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/af903x-fe.c')
-rw-r--r--src/af903x-fe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/af903x-fe.c b/src/af903x-fe.c
index f9b12c0..aee8948 100644
--- a/src/af903x-fe.c
+++ b/src/af903x-fe.c
@@ -130,12 +130,12 @@ static int af903x_read_ber(struct dvb_frontend *fe, u32 *ber)
static int af903x_read_snr(struct dvb_frontend* fe, u16 *snr)
{
- *snr = 0;
-
DWORD error = Error_NO_ERROR;
Constellation constellation;
BYTE SignalSnr = 0;
+ *snr = 0;
+
error = DL_getSNR(fe->dvb->num, &constellation, &SignalSnr);
if(error) return error;