From b8c9fedc819836975ba436d89c3a28f63bb38d48 Mon Sep 17 00:00:00 2001 From: leslie Date: Mon, 14 Jan 2008 21:14:04 +0100 Subject: [PATCH] fix ConstCW key print --- systems/constcw/constcw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/systems/constcw/constcw.c b/systems/constcw/constcw.c index 56ddd46..8a37fa6 100644 --- a/systems/constcw/constcw.c +++ b/systems/constcw/constcw.c @@ -56,7 +56,9 @@ static cPlainKeyTypeReg KeyReg; cPlainKeyConstCw::cPlainKeyConstCw(bool Super) :cHexKey(Super) -{} +{ + freq=-1; +} bool cPlainKeyConstCw::Matches(const cEcmInfo *ecm) { @@ -89,7 +91,7 @@ bool cPlainKeyConstCw::Parse(const char *line) cString cPlainKeyConstCw::PrintKeyNr(void) { - return cString::sprintf("%d:%c:%s:%d",freq,pol,*cSource::ToString(source),prgId); + return freq<0 ? "" : cString::sprintf("%d:%c:%s:%d",freq,pol,*cSource::ToString(source),prgId); } // -- cSystemConstCw ------------------------------------------------------------------ -- 2.39.5