From 49b0391d145195f9be857a05d4efa609ada05078 Mon Sep 17 00:00:00 2001 From: david gauchard Date: Tue, 21 Jun 2022 23:16:06 +0200 Subject: [PATCH 1/2] adding wifi-off-at-boot side-effects mention in documentation --- doc/esp8266wifi/generic-class.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/esp8266wifi/generic-class.rst b/doc/esp8266wifi/generic-class.rst index f1ed42ea06..a26c008c92 100644 --- a/doc/esp8266wifi/generic-class.rst +++ b/doc/esp8266wifi/generic-class.rst @@ -55,6 +55,10 @@ This change is harmless with standard sketches: Calls to ``WiFi.mode()`` do enable radio as usual. It also smooths current spikes at boot and decreases DHCP stress. +Known side-effects: + +- ``WiFi.mode()`` must be called before changing mac addresses with `wifi_set_macaddr({SOFTAP,STATION}_IF, ...)``. + Legacy behavior can be restored by calling ``enableWiFiAtBootTime()`` from anywhere in the code (it is a weak void function intended to play with the linker). From e4e5cbd4aa1671f809e9f50d4b5b62bd84b6f692 Mon Sep 17 00:00:00 2001 From: david gauchard Date: Tue, 21 Jun 2022 23:18:01 +0200 Subject: [PATCH 2/2] typo --- doc/esp8266wifi/generic-class.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/esp8266wifi/generic-class.rst b/doc/esp8266wifi/generic-class.rst index a26c008c92..db844b08be 100644 --- a/doc/esp8266wifi/generic-class.rst +++ b/doc/esp8266wifi/generic-class.rst @@ -57,7 +57,7 @@ DHCP stress. Known side-effects: -- ``WiFi.mode()`` must be called before changing mac addresses with `wifi_set_macaddr({SOFTAP,STATION}_IF, ...)``. +- ``WiFi.mode()`` must be called before changing mac addresses with ``wifi_set_macaddr({SOFTAP,STATION}_IF, ...)``. Legacy behavior can be restored by calling ``enableWiFiAtBootTime()`` from anywhere in the code (it is a weak void function intended to play with the