4 years, 3 months ago.

Why is my #define not accepted

/media/uploads/henkvbeek/defineerror.jpg

2 Answers

4 years, 3 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..

Accepted Answer
4 years, 3 months ago.

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

#define _CmdData 0x40