mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 02:02:23 +00:00
fixing I2C requests and Wifi Power Saving Modes.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "target_specific.h"
|
||||
#include <DNSServer.h>
|
||||
#include <ESPmDNS.h>
|
||||
#include <esp_wifi.h>
|
||||
#include <WiFi.h>
|
||||
#include <WiFiUdp.h>
|
||||
|
||||
@@ -239,7 +240,7 @@ bool initWifi(bool forceSoftAP)
|
||||
DEBUG_MSG("MY IP AP ADDRESS: %s\n", WiFi.softAPIP().toString().c_str());
|
||||
|
||||
// This is needed to improve performance.
|
||||
// esp_wifi_set_ps(WIFI_PS_NONE); // Disable radio power saving
|
||||
esp_wifi_set_ps(WIFI_PS_NONE); // Disable radio power saving
|
||||
|
||||
dnsServer.start(53, "*", apIP);
|
||||
|
||||
@@ -253,7 +254,7 @@ bool initWifi(bool forceSoftAP)
|
||||
WiFi.onEvent(WiFiEvent);
|
||||
|
||||
// This is needed to improve performance.
|
||||
// esp_wifi_set_ps(WIFI_PS_NONE); // Disable radio power saving
|
||||
esp_wifi_set_ps(WIFI_PS_NONE); // Disable radio power saving
|
||||
|
||||
WiFi.onEvent(
|
||||
[](WiFiEvent_t event, WiFiEventInfo_t info) {
|
||||
|
||||
Reference in New Issue
Block a user