mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 07:12:06 +08:00
nshlib:add platform skip login function
Signed-off-by: huangjian <huangjian@xiaomi.com>
This commit is contained in:
@@ -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++)
|
||||
|
Reference in New Issue
Block a user