From: Jean THOMAS Date: Mon, 3 Aug 2020 10:57:40 +0000 (+0200) Subject: Don't test the same rdly twice X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=195204af9b8233a49e45a4f2d965055eaf7471d8;p=gram.git Don't test the same rdly twice --- diff --git a/libgram/src/calibration.c b/libgram/src/calibration.c index c1721a4..2802802 100644 --- a/libgram/src/calibration.c +++ b/libgram/src/calibration.c @@ -84,7 +84,7 @@ int gram_generate_calibration(const struct gramCtx *ctx, struct gramProfile *pro } // Find maximal rdly - for (rdly = min_rdly_p0; rdly < 8; rdly++) { + for (rdly = min_rdly_p0+1; rdly < 8; rdly++) { profile->rdly_p0 = rdly; gram_load_calibration(ctx, profile); gram_reset_burstdet(ctx); @@ -101,7 +101,7 @@ int gram_generate_calibration(const struct gramCtx *ctx, struct gramProfile *pro } } - for (rdly = min_rdly_p1; rdly < 8; rdly++) { + for (rdly = min_rdly_p1+1; rdly < 8; rdly++) { profile->rdly_p1 = rdly; gram_load_calibration(ctx, profile); gram_reset_burstdet(ctx);