From: Jean THOMAS Date: Thu, 6 Aug 2020 16:49:19 +0000 (+0200) Subject: examples: Load stock calibration profile if calibration failed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=196a48b7bc1a25c5eb482e7a621256788c7010aa;p=gram.git examples: Load stock calibration profile if calibration failed --- diff --git a/examples/firmware/main.c b/examples/firmware/main.c index f336bab..cd26b73 100644 --- a/examples/firmware/main.c +++ b/examples/firmware/main.c @@ -86,6 +86,7 @@ int main(void) { res = gram_generate_calibration(&ctx, &profile2); if (res != GRAM_ERR_NONE) { uart_writestr("failed\n"); + gram_load_calibration(&ctx, &profile); } else { gram_load_calibration(&ctx, &profile2); }