Skip to content

Commit 273f7c6

Browse files
committed
ESP8266: Fix compilation error when default interface is enabled
Compile [ 1.3%]: ESP8266Interface.cpp [Error] ESP8266Interface.cpp@582,33: cannot declare static function inside another function [Error] ESP8266Interface.cpp@583,13: cannot convert 'ESP8266Interface (*)()' to 'WiFiInterface*' in return Failed to build library
1 parent 44925d8 commit 273f7c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/wifi/esp8266-driver/ESP8266Interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ nsapi_connection_status_t ESP8266Interface::get_connection_status() const
579579
#if MBED_CONF_ESP8266_PROVIDE_DEFAULT
580580

581581
WiFiInterface *WiFiInterface::get_default_instance() {
582-
static ESP8266Interface esp();
582+
static ESP8266Interface esp;
583583
return &esp;
584584
}
585585

0 commit comments

Comments
 (0)