From 196a48b7bc1a25c5eb482e7a621256788c7010aa Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Thu, 6 Aug 2020 18:49:19 +0200 Subject: [PATCH] examples: Load stock calibration profile if calibration failed --- examples/firmware/main.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.30.2