Hi List unsigned char Temp; Temp = (*I2C_Pckt).Task_Control; if ((Temp&I2C_BusGPO_Changed) > 0) { ... do something }; Why does this produce an error ? "GKB_SPI.c:548: error: syntax error before ';' token" Both variables being "anded" are unsigned chars -- Kind Regards Grant Brown SiteDoc Pty Ltd mob: 0412 926 995 www.sitedoc.com.au __________________________________________________________________________________________________________ This email message together with any attachments is intended only for the addressee(s) and contains information that may be confidential and/or copyright. If you are not the intended recipient, please notify the sender by reply email (or telephone SiteDoc Pty Ltd on +61 2 42291185) and immediately delete this email together with any attachments from your computer. If you are the intended recipient, you must not copy, disclose, reproduce or distribute this communication together with any attachments without the authority of SiteDoc Proprietary Limited. No representation is made that this email or any attachments are free of viruses. Virus scanning is recommended and is the responsibility of the recipient. Unless specifically stated by the sender as the views of SiteDoc Proprietary Limited, any views expressed in this message are those of the individual sender, and no responsibility will be borne by SiteDoc Proprietary Limited for its content or outcomes. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist