Skip to content

Commit cfbbd6f

Browse files
authored
enableWiFiAtBootTime() should be declared in ESP8266WiFi.h (#7993)
1 parent b933e3d commit cfbbd6f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

cores/esp8266/core_esp8266_features.h

-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ uint64_t micros64(void);
105105
void delay(unsigned long);
106106
void delayMicroseconds(unsigned int us);
107107

108-
void enableWiFiAtBootTime (void) __attribute__((noinline));
109-
110108
#if defined(F_CPU) || defined(CORE_MOCK)
111109
#ifdef __cplusplus
112110
constexpr

doc/esp8266wifi/generic-class.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ linker).
6161

6262
.. code:: cpp
6363
64-
#include <ESP8266WiFi.h> // necessary to avoid a linker error
64+
#include <ESP8266WiFi.h>
6565
6666
void setup () {
6767
#ifdef WIFI_IS_OFF_AT_BOOT

libraries/ESP8266WiFi/src/ESP8266WiFi.h

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ extern "C" {
5353
#define DEBUG_WIFI(...) do { (void)0; } while (0)
5454
#endif
5555

56+
extern "C" void enableWiFiAtBootTime (void) __attribute__((noinline));
5657

5758
class ESP8266WiFiClass : public ESP8266WiFiGenericClass, public ESP8266WiFiSTAClass, public ESP8266WiFiScanClass, public ESP8266WiFiAPClass {
5859
public:

0 commit comments

Comments
 (0)