-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility for Arduino IDE 1.5+ #13
Comments
rename functions.ino to _functions.ino |
Tried that, it still threw errors. |
and reorder methot loadPenPosFromEE body before initHardware in Hepler_Functions.ino |
Okay, well I'm going to stick with my method, as it's a more "future proof" way of doing it. I was just throwing out there that you should fix the code for IDE 1.5+ |
I encountered the same problems with the latest IDE 1.6.7 and could get rid of the compiler error messages by simply swapping every "void inline" to "inline void". This method is not as future-proof as spaelectronics', but provides a smooth compilation, too ;-) |
Interesting.. I'll have to check that out. |
By the way: I get similar problems with different error messages when I try to simply activate the outcommented button defines in IDE 1.6.7. The Compiler runs smooth again, when a prototype for the called functions (setprgButtonState etc.) is added just above the object creation or, better, in button.h ... |
using 1.6.7: I just deleted all "inline" in Helper_Functions; "inline void" also works |
@caravanserei |
@Viper-Gtr Usually the Arduino environment keeps those formalistic details of the real C-world away from you; but obviously something has changed recently... #ifdef prgButton |
Arduino no longer handles inline functions the same.
To make this code work, I had to add the following to the EggDuino.ino
// Function prototypes
void sendAck(void);
void sendError(void);
void loadPenPosFromEE(void);
void storePenUpPosInEE(void);
void storePenDownPosInEE(void);
The text was updated successfully, but these errors were encountered: