In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sparks-R-Fun wrote: It looks like I found found one of those rare instances where a command expects to see a general byte and not one that is part of an array. Using the following definitions: [CODE]Temp1 VAR BYTE ' Common temporary storage variable. System VAR BYTE(16) SystemStatus VAR System(12) ' Track various states of the System Status I2CAck VAR SystemStatus.2 ' I2C Acknowledgment flag[/CODE] The command [CODE]I2CSend SDA, Temp1, I2CAck ' Send the address of the I2C device.[/CODE] Generates a [B]Bit Variable Expected "I2CAck"[/B] error. Defining SystemStatus as a byte (as shown below) compiles cleanly. [CODE]Temp1 VAR BYTE ' Common temporary storage variable. SystemStatus VAR BYTE ' Track various states of the System Status I2CAck VAR SystemStatus.2 ' I2C Acknowledgment flag[/CODE] This is not a problem I seek to have fixed as changing the variable definition offers a solution. I just wanted to document it add to the information in the thread. - Sparks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=179709#m180092 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)