From c38396cb5e626548d31c21e0866bd18bed546083 Mon Sep 17 00:00:00 2001 From: Guenael Date: Thu, 23 Dec 2021 16:09:41 -0500 Subject: [PATCH] fix: new values from the lastest wsprd --- wsprd/wsprd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wsprd/wsprd.c b/wsprd/wsprd.c index 577bc8b..35a4186 100644 --- a/wsprd/wsprd.c +++ b/wsprd/wsprd.c @@ -454,10 +454,10 @@ int wspr_decode(float *idat, /* Setup metric table */ int32_t mettab[2][256]; - float bias = 0.42; + float bias = 0.45; for (int i = 0; i < 256; i++) { - mettab[0][i] = round(10 * (metric_tables[2][i] - bias)); - mettab[1][i] = round(10 * (metric_tables[2][255 - i] - bias)); + mettab[0][i] = roundf(10.0 * (metric_tables[2][i] - bias)); + mettab[1][i] = roundf(10.0 * (metric_tables[2][255 - i] - bias)); } /* Setup/Load hash tables */