Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #7988: reverse dependency core on libraries: enableWiFiAtBootTime() #7993

Merged
merged 1 commit into from
Apr 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions cores/esp8266/core_esp8266_features.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ uint64_t micros64(void);
void delay(unsigned long);
void delayMicroseconds(unsigned int us);

void enableWiFiAtBootTime (void) __attribute__((noinline));

#if defined(F_CPU) || defined(CORE_MOCK)
#ifdef __cplusplus
constexpr
Expand Down
2 changes: 1 addition & 1 deletion doc/esp8266wifi/generic-class.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ linker).

.. code:: cpp

#include <ESP8266WiFi.h> // necessary to avoid a linker error
#include <ESP8266WiFi.h>

void setup () {
#ifdef WIFI_IS_OFF_AT_BOOT
Expand Down
1 change: 1 addition & 0 deletions libraries/ESP8266WiFi/src/ESP8266WiFi.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ extern "C" {
#define DEBUG_WIFI(...) do { (void)0; } while (0)
#endif

extern "C" void enableWiFiAtBootTime (void) __attribute__((noinline));

class ESP8266WiFiClass : public ESP8266WiFiGenericClass, public ESP8266WiFiSTAClass, public ESP8266WiFiScanClass, public ESP8266WiFiAPClass {
public:
Expand Down