From d9d451dfb5db43afa6099c207e33c7322625da4b Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 15 Jul 2012 13:29:14 +0200 Subject: [PATCH] zapit: return 0 in CFrontend::getBitErrorRate for broken drivers --- src/zapit/src/frontend.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zapit/src/frontend.cpp b/src/zapit/src/frontend.cpp index e24da05c3..69f069f30 100644 --- a/src/zapit/src/frontend.cpp +++ b/src/zapit/src/frontend.cpp @@ -376,6 +376,8 @@ uint32_t CFrontend::getBitErrorRate(void) const { uint32_t ber = 0; fop(ioctl, FE_READ_BER, &ber); + if (ber > 100000000) /* azbox minime driver has useless values around 500.000.000 */ + ber = 0; return ber; }