mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-05 20:16:04 +08:00
Fix WiFi scan not Working in AP mode
This commit is contained in:
parent
862da6c225
commit
62e2edd52a
@ -41,6 +41,7 @@ bool Commands::ESP410(const char* cmd_params, level_authenticate_type auth_type,
|
||||
#endif //AUTHENTICATION_FEATURE
|
||||
//Backup current mode
|
||||
uint8_t currentmode = WiFi.getMode();
|
||||
if(currentmode==WIFI_AP)WiFi.mode(WIFI_AP_STA);
|
||||
bool plain = hastag(cmd_params,"plain");
|
||||
int n = 0;
|
||||
uint8_t total = 0;
|
||||
|
@ -22,7 +22,7 @@
|
||||
#define _VERSION_ESP3D_H
|
||||
|
||||
//version and sources location
|
||||
#define FW_VERSION "3.0.0.a99"
|
||||
#define FW_VERSION "3.0.0.a100"
|
||||
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
|
||||
|
||||
#endif //_VERSION_ESP3D_H
|
||||
|
@ -259,6 +259,7 @@ void MKSService::sendWifiHotspots()
|
||||
uint dataOffset = 1;
|
||||
uint8_t total_hotspots = 0;
|
||||
uint8_t currentmode = WiFi.getMode();
|
||||
if(currentmode==WIFI_AP)WiFi.mode(WIFI_AP_STA);
|
||||
clearFrame();
|
||||
//clean memory
|
||||
WiFi.scanDelete();
|
||||
|
Loading…
x
Reference in New Issue
Block a user