Hi everyone,
I'm trying to have a library file .cpp have some conditional compiled lines. I'll post here the code:
HMC58X3.h http://sprunge.us/hEYW
HMC58X3.cpp 401 Unauthorized
HMC58X3_raw.pde http://sprunge.us/BFVj
Basically, in the Arduino sketch I define ISHMC5843 and in both HMC58X3.cpp and HMC58X3.h I do have different code to be compiled depending if that flag has been enabled.
The conditional compilation seems to work for the HMC58X3.h while it doesn't for the HMC58X3.cpp .. it always looks that ISHMC5843 hasn't been defined. Any idea how to have this working?
Thanks,
Fabio Varesano