From 8039097426f02ea6643100649ae95b11c3f84f9f Mon Sep 17 00:00:00 2001 From: none Date: Fri, 14 May 2021 22:49:19 +0200 Subject: [PATCH] add support for FE_TIMEDOUT --- ddbridge/ddbridge-m4.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ddbridge/ddbridge-m4.c b/ddbridge/ddbridge-m4.c index 63bb06e..6203c6f 100644 --- a/ddbridge/ddbridge-m4.c +++ b/ddbridge/ddbridge-m4.c @@ -404,9 +404,11 @@ static int read_status(struct dvb_frontend *fe, enum fe_status *status) ddb_mci_get_strength(fe); if (res.status == MCI_DEMOD_WAIT_SIGNAL) *status = 0x01; - if (res.status == M4_DEMOD_WAIT_TS) + else if (res.status == M4_DEMOD_WAIT_TS) *status = 0x03; - if (res.status == MCI_DEMOD_LOCKED) { + else if (res.status == MCI_DEMOD_TIMEOUT) + *status = FE_TIMEDOUT; + else if (res.status == MCI_DEMOD_LOCKED) { *status = 0x1f; ddb_mci_get_snr(fe); }