aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/frontend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dvb/frontend.cpp')
-rw-r--r--lib/dvb/frontend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp
index e1af3098..df98dc24 100644
--- a/lib/dvb/frontend.cpp
+++ b/lib/dvb/frontend.cpp
@@ -1541,7 +1541,7 @@ void eDVBFrontend::tuneLoop() // called by m_tuneTimer
if (f) // new interface exist?
{
bool slimiting = m_sec_sequence.current()->mode == eSecCommand::modeStatic;
- if (fprintf(f, "%s", slimiting ? "on" : "off") != 1)
+ if (fprintf(f, "%s", slimiting ? "on" : "off") <= 0)
eDebug("write %s failed!! (%m)", proc_name);
else
eDebug("[SEC] set %s current limiting", slimiting ? "static" : "dynamic");