]> www.vanbest.org Git - sasc-ng.git/commitdiff
fix ConstCW key print
authorleslie <unknown>
Mon, 14 Jan 2008 20:14:04 +0000 (21:14 +0100)
committerleslie <unknown>
Mon, 14 Jan 2008 20:14:04 +0000 (21:14 +0100)
systems/constcw/constcw.c

index 56ddd46f9a707a1ec2a347a9216050c95de70dd4..8a37fa643484c9ac4a8654d4d89efc9a4cef6931 100644 (file)
@@ -56,7 +56,9 @@ static cPlainKeyTypeReg<cPlainKeyConstCw,'X'> 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 ------------------------------------------------------------------