You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The macro DISABLED as defined in Arduino.h may conflict with some sketches.
Hardware
Hardware: All ESP8266
Core Version: 2.2.0
Description
The macro DISABLED as defined in Arduino.h may conflict with some sketches when DISABLED is defined in the sketch or library. Changing from a generic name like "DISABLED" to a more specific name like "ESP8266_INT_DISABLED" would help to avoid collisions like this. Would this be an option?
Alternatively, using a global constant will reduce the impact of this:
const uint8_t DISABLED = 0;
This will still conflict with global variables or constants, but will allow using DISABLED as an identifier in other places (parameter names, member names, etc.). Using a constant instead of a define in this way should not influence performance (generated code is typically identical).
Basic Infos
The macro DISABLED as defined in Arduino.h may conflict with some sketches.
Hardware
Hardware: All ESP8266
Core Version: 2.2.0
Description
The macro DISABLED as defined in Arduino.h may conflict with some sketches when DISABLED is defined in the sketch or library. Changing from a generic name like "DISABLED" to a more specific name like "ESP8266_INT_DISABLED" would help to avoid collisions like this. Would this be an option?
Sketch
Debug Messages
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: