Closed
Description
With the latest version, implicit function declaration no longer works, making it incompatible with many existing Arduino sketches.
Implicit function definition is a common pattern in many Arduino sketches on the net, and was an intentional choice in the original Arduino API. Unfortunately, it no longer works in the ESP8266 Arduino port.
In previous versions, this worked:
#include <ESP8266WiFi.h>
void setup() {
}
void loop() {
myFunction();
}
void myFunction() {
}
Now it produces the error "myFunction was not declared in this scope".
Here's an example that worked with the previous version but fails now, for testing.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.