nshlib:add platform skip login function

Signed-off-by: huangjian <huangjian@xiaomi.com>
This commit is contained in:
huangjian
2022-11-04 20:39:26 +08:00
committed by Xiang Xiao
parent 5a623cc9e3
commit 88fff23d34
3 changed files with 25 additions and 0 deletions

View File

@@ -150,6 +150,13 @@ int nsh_login(FAR struct console_stdio_s *pstate)
int ret;
int i;
#ifdef CONFIG_NSH_PLATFORM_SKIP_LOGIN
if (platform_skip_login() == OK)
{
return OK;
}
#endif
/* Loop for the configured number of retries */
for (i = 0; i < CONFIG_NSH_LOGIN_FAILCOUNT; i++)