From dd73df2ed43ff4f34a98822576dd8bbd3c00573f Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 18 Jun 2021 08:45:11 -0400 Subject: [PATCH] added FSK second per frame --- afsk/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index b53483f2..d19fd70b 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -581,8 +581,8 @@ int main(int argc, char * argv[]) { samplePeriod = (int) (((float)((syncBits + 10 * (headerLen + rsFrames * (rsFrameLen + parityLen)))) / (float) bitRate) * 1000 - 500); sleepTime = 0.1f; - printf("\n FSK Mode, %d bits per frame, %d bits per second, %d ms sample period\n", - bufLen / (samples * frameCnt), bitRate, samplePeriod); + printf("\n FSK Mode, %d bits per frame, %d bits per second, %f seconds per frame, %d ms sample period\n", + bufLen / (samples * frameCnt), bitRate, (float)((float)bufLen / (samples * frameCnt * bitRate)), samplePeriod); } else if (mode == BPSK) { bitRate = 1200; rsFrames = 3;