提交 5d0283e0 authored 作者: blu's avatar blu

new feature: evwifi

上级 0cd902f6
......@@ -181,9 +181,11 @@ class WifiMgr {
//
}else if(this->mode == 0) {
// try to mode2
if(fs::exists(fs::path(wpaCfgPath)) && mode1Cnt % 600){
if(fs::exists(fs::path(wpaCfgPath))){
if(mode1Cnt % 600 == 0){
spdlog::info("evwifi {} maybe crashed before, try connect wifi", this->devSn);
this->enableMode(2);
}
}else{
// mode1
spdlog::info("evwifi {} has wifi ip, but no configuration, this should never happen. switch to AP mode", this->devSn);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论