From b23d51ab78d2802a73c0f5edefb021a58c87dc7b Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Thu, 2 Dec 2021 16:37:51 +0100 Subject: [PATCH] Avoid looping on uart read after applet initialization fails --- wolfcrypt/src/port/iotsafe/iotsafe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfcrypt/src/port/iotsafe/iotsafe.c b/wolfcrypt/src/port/iotsafe/iotsafe.c index 817b3004a..dd1ee2efa 100644 --- a/wolfcrypt/src/port/iotsafe/iotsafe.c +++ b/wolfcrypt/src/port/iotsafe/iotsafe.c @@ -423,6 +423,7 @@ static int iotsafe_init(void) if (expect_csim_response(atcmd_load_applet_str, (word32)XSTRLEN(atcmd_load_applet_str), &reply) < 0) { WOLFSSL_MSG("FAIL: no Applet code response from iot-safe init"); + expect_ok("AT", 2); } else { WOLFSSL_MSG("IoT Safe Applet INIT OK"); }