Make calibration a bit faster
authorJean THOMAS <git0@pub.jeanthomas.me>
Mon, 3 Aug 2020 09:33:50 +0000 (11:33 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Mon, 3 Aug 2020 09:33:50 +0000 (11:33 +0200)
libgram/src/calibration.c

index 2f24113f2c34e93d956d857977b30a6d37440085..2a7d8e88a6e7a7dd39cd1e4875ddaee49c0a3039 100644 (file)
@@ -95,7 +95,7 @@ int gram_generate_calibration(const struct gramCtx *ctx, struct gramProfile *pro
                }
        }
 
-       for (rdly = 0; rdly < 8; rdly++) {
+       for (rdly = min_rdly_p1; rdly < 8; rdly++) {
                profile->rdly_p1 = rdly;
                gram_load_calibration(ctx, profile);
                gram_reset_burstdet(ctx);