ste2006
Advanced Member level 4
I have the below snippet of code in a function but when i complile it is giving me an error around my else Statement,
What is the error with this line, I want to AND SysFlags with Hex Value FFFD with the result to be placed back in SysFlags
---------- Post added at 11:56 ---------- Previous post was at 11:53 ----------
Sorry, Syntax Error
What is the error with this line, I want to AND SysFlags with Hex Value FFFD with the result to be placed back in SysFlags
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 unsigned int Reboot (unsigned char action, unsigned int SysFlags) { int TempSysFlags = 0x00; if (action == 1); // Start Reboot { SysFlags |= 0x02; // Set Flag High } else { SysFlags &= 0xFFFD; } }
---------- Post added at 11:56 ---------- Previous post was at 11:53 ----------
Sorry, Syntax Error
Last edited by a moderator: