2 years, 8 months ago.

Why is my #define not accepted

/media/uploads/henkvbeek/defineerror.jpg

Comment on this question

2 Answers

2 years, 8 months ago.

You have a '';'' at the end of the #define that will be inserted in your code:

Send_Byte(_CmdData);

which becomes:

Send_Byte(0x40;);

The compiler doesnt like that..

2 years, 8 months ago.

Hello Henk,
Try to delete the semicolon at the end of your define line.

#define _CmdData 0x40