From: leslie Date: Mon, 14 Jan 2008 20:14:04 +0000 (+0100) Subject: fix ConstCW key print X-Git-Tag: 0.9.0~32 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=b8c9fedc819836975ba436d89c3a28f63bb38d48;p=sasc-ng.git fix ConstCW key print --- 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 ------------------------------------------------------------------