From b2617081594b51b6cac1d7a9e2bb3fb9ba1cdf00 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Mon, 3 Aug 2020 12:57:24 +0200 Subject: [PATCH] Fix pointer bug --- libgram/src/calibration.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) { -- 2.30.2