Improve:wifi hal fastboot.
This commit is contained in:
parent
80ba0a816f
commit
d11518383a
|
@ -28,7 +28,7 @@ public:
|
|||
private:
|
||||
bool CheckWlan0IfExist(void);
|
||||
|
||||
private:
|
||||
protected:
|
||||
bool mInitRunning;
|
||||
};
|
||||
#endif
|
|
@ -176,7 +176,11 @@ void AppManager::WifiApModeInit(const AppParam ¶m)
|
|||
* @brief This interface depends on hardware and may block. It is necessary to ensure that hardware interface
|
||||
* blocking does not cause the main thread to block.
|
||||
*/
|
||||
wifi->OpenApMode();
|
||||
StatusCode code = wifi->OpenApMode();
|
||||
if (!IsCodeOK(code)) {
|
||||
LogError("OpenApMode failed.\n");
|
||||
return;
|
||||
}
|
||||
if (false == mInitRuning) {
|
||||
LogWarning("AppManager init stop.\n");
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user