Skip to content

Commit 34ce5ae

Browse files
committed
Rework WiFi code
1 parent 9f96a9b commit 34ce5ae

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/network/wifihandler.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
*/
23-
#include "network/wifihandler.h"
24-
2523
#include "GlobalVars.h"
2624
#include "globals.h"
25+
#include "network/wifihandler.h"
2726
#if !ESP8266
2827
#include "esp_wifi.h"
2928
#include "esp_wifi_types.h"
@@ -63,6 +62,8 @@ void WiFiNetwork::setWiFiCredentials(const char* SSID, const char* pass) {
6362
IPAddress WiFiNetwork::getAddress() { return WiFi.localIP(); }
6463

6564
void WiFiNetwork::setUp() {
65+
// Don't need to save the already saved credentials or the hardcoded ones
66+
WiFi.persistent(false);
6667
wifiHandlerLogger.info("Setting up WiFi");
6768
WiFi.mode(WIFI_STA);
6869
WiFi.hostname("SlimeVR FBT Tracker");

0 commit comments

Comments
 (0)