From c8a5245b6c956f2e7afcea3c0611a17e6a2c3cb8 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sun, 28 Feb 2016 18:23:31 +0200 Subject: [PATCH] Fix statistics output a bit more. --- device.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/device.c b/device.c index 02e60fd..88b8e27 100644 --- a/device.c +++ b/device.c @@ -116,10 +116,12 @@ cString cSatipDevice::GetSatipStatus(void) info = cString::sprintf("%sCardIndex: %d HasLock: yes Strength: %d Quality: %d%s\n", *info, device->CardIndex(), device->SignalStrength(), device->SignalQuality(), live ? " Live: yes" : ""); else info = cString::sprintf("%sCardIndex: %d HasLock: no\n", *info, device->CardIndex()); - if (channel && channel->Number() > 0 && device->Receiving()) - info = cString::sprintf("%sTransponder: %d Channel: %s\n", *info, channel->Transponder(), channel->Name()); - else - info = cString::sprintf("%sTransponder: %d\n", *info, channel->Transponder()); + if (channel) { + if (channel->Number() > 0 && device->Receiving()) + info = cString::sprintf("%sTransponder: %d Channel: %s\n", *info, channel->Transponder(), channel->Name()); + else + info = cString::sprintf("%sTransponder: %d\n", *info, channel->Transponder()); + } if (timers) info = cString::sprintf("%sRecording: %d timer%s\n", *info, timers, (timers > 1) ? "s" : ""); info = cString::sprintf("%s\n", *info);