From d79e413da523e660b96b8af5ceb39c14c775f53e Mon Sep 17 00:00:00 2001 From: Steven Franke Date: Tue, 2 Jan 2018 01:16:13 +0000 Subject: [PATCH] Make wsprsim.c accept non-integer SNR git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8392 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- lib/wsprd/wsprsim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wsprd/wsprsim.c b/lib/wsprd/wsprsim.c index f368b2098..e1a63613e 100644 --- a/lib/wsprd/wsprsim.c +++ b/lib/wsprd/wsprsim.c @@ -151,7 +151,8 @@ int main(int argc, char *argv[]) writec2=1; break; case 's': - snr = (float)atoi(optarg); +// snr = (float)atoi(optarg); + snr = atof(optarg); break; } }