I was updating and adding more funcitionality to my application, so I defined a new state and assigned it a constant that was added to the constant list in some included file “adtional.h”. Surprisingly when compiling this new version the defined constant is not found or recognized and a compiler error is generated. Then if I add the same #define line in the main .ino program, everything works ok. The definitions of the constants for the old states were recongnized previously and so they are still recognized giving no error.
// Estados #define NOCON 0 #define INIT 1 #define LOOP 2 #define HWIFI 3
You can see the list of states as they appear in the .h file; the last one, HWIFI is not recognized.
I presume it is a problem due to the way the compiling system transforms the input files.