mirror of
https://github.com/luc-github/ESP3D.git
synced 2026-03-12 02:46:49 +01:00
Fix WiFi scan not Working in AP mode
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user