mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Avoid looping on uart read after applet initialization fails
This commit is contained in:
@ -423,6 +423,7 @@ static int iotsafe_init(void)
|
|||||||
if (expect_csim_response(atcmd_load_applet_str,
|
if (expect_csim_response(atcmd_load_applet_str,
|
||||||
(word32)XSTRLEN(atcmd_load_applet_str), &reply) < 0) {
|
(word32)XSTRLEN(atcmd_load_applet_str), &reply) < 0) {
|
||||||
WOLFSSL_MSG("FAIL: no Applet code response from iot-safe init");
|
WOLFSSL_MSG("FAIL: no Applet code response from iot-safe init");
|
||||||
|
expect_ok("AT", 2);
|
||||||
} else {
|
} else {
|
||||||
WOLFSSL_MSG("IoT Safe Applet INIT OK");
|
WOLFSSL_MSG("IoT Safe Applet INIT OK");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user