S
Scott Kelley
Wanted to create a 'flag byte' to use for a number of things. The following
seemed a reasonable approach:
#define connected = 0x01
unsigned char FlagByte;
why does this work:
FlagByte &= ~0x01; // set connected flag = 0
& this doesn't
FlagByte &= ~connected; // set connected flag = 0
Thanks,
Scott Kelley
seemed a reasonable approach:
#define connected = 0x01
unsigned char FlagByte;
why does this work:
FlagByte &= ~0x01; // set connected flag = 0
& this doesn't
FlagByte &= ~connected; // set connected flag = 0
Thanks,
Scott Kelley