From: Jean THOMAS Date: Mon, 3 Aug 2020 10:57:24 +0000 (+0200) Subject: Fix pointer bug X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2617081594b51b6cac1d7a9e2bb3fb9ba1cdf00;p=gram.git Fix pointer bug --- diff --git a/libgram/src/calibration.c b/libgram/src/calibration.c index 8d89ebd..c1721a4 100644 --- a/libgram/src/calibration.c +++ b/libgram/src/calibration.c @@ -58,7 +58,7 @@ int gram_generate_calibration(const struct gramCtx *ctx, struct gramProfile *pro tmp = ram[i]; } - if (gram_read_burstdet(&ctx, 0)) { + if (gram_read_burstdet(ctx, 0)) { min_rdly_p0 = rdly; break; } else if (rdly == 7) { @@ -75,7 +75,7 @@ int gram_generate_calibration(const struct gramCtx *ctx, struct gramProfile *pro tmp = ram[i]; } - if (gram_read_burstdet(&ctx, 1)) { + if (gram_read_burstdet(ctx, 1)) { min_rdly_p1 = rdly; break; } else if (rdly == 7) { @@ -93,7 +93,7 @@ int gram_generate_calibration(const struct gramCtx *ctx, struct gramProfile *pro tmp = ram[i]; } - if (!gram_read_burstdet(&ctx, 0)) { + if (!gram_read_burstdet(ctx, 0)) { max_rdly_p0 = rdly - 1; break; } else if (rdly == 7) { @@ -110,7 +110,7 @@ int gram_generate_calibration(const struct gramCtx *ctx, struct gramProfile *pro tmp = ram[i]; } - if (!gram_read_burstdet(&ctx, 1)) { + if (!gram_read_burstdet(ctx, 1)) { max_rdly_p1 = rdly - 1; break; } else if (rdly == 7) {