From 195204af9b8233a49e45a4f2d965055eaf7471d8 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Mon, 3 Aug 2020 12:57:40 +0200 Subject: [PATCH] Don't test the same rdly twice --- libgram/src/calibration.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2