amohr 0 Posted March 24, 2003 Report Share Posted March 24, 2003 when compiling the following I get the error: Line 49: Error in const array definition If I replace all the |'s with the real values it compiles. #define MOMENTARY 1 #define TOGGLE 2 #define LATCHING 4 #define COUNTING 8 #define REPEATING 16 #define ONBUTTON 32 // sets all other buttons as enabled #define OFFBUTTON 64 // sets all other buttons as disabled unsigned char button_type[10] = { LATCHING | ONBUTTON, MOMENTARY | OFFBUTTON, MOMENTARY | REPEATING, LATCHING, LATCHING, MOMENTARY, MOMENTARY | REPEATING, LATCHING, LATCHING, TOGGLE }; Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.