station改回ap并关闭station, 保存ap及密码到Flash

This commit is contained in:
zogodo
2020-02-17 20:50:37 +08:00
parent 9a004ccc76
commit 1a7d4d5a47
6 changed files with 27 additions and 32 deletions

View File

@@ -72,7 +72,7 @@ int application_start(void)
if (!MicoGpioInputGet(Button))
{ //开机时按钮状态
os_log("press ap_init");
ApInit();
ApInit(false);
open_ap = true;
}
@@ -109,7 +109,7 @@ int application_start(void)
{
if (sys_config->micoSystemConfig.reserved != NOTIFY_STATION_UP)
{
ApInit();
ApInit(true);
}
else
{