Hello,
In programme I have defined
#define DEVICE_ID 0x32
But I want to change Device Id when I get command of change Device Address.
How should I do it?
Regards, Abhijeet R. Mudgal.
This is standard, textbook 'C' - nothing specifically to do with the 8051 or Keil.
#define gives a definition that is fixed at compile time;
IF you want it to be changeable at run time, you will need to use a variable.