In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: I would avoid using locals, too, as this adds processing overhead and time to do things. You can change I2C_IN to this: [code]FUNC I2C_IN ackNak = __PARAM1.0 I2CRECV SDA, __PARAM1, ackNak ENDFUNC [/code] ... and if you make "flags" the first byte in your variable list it will be global, even in the SX48. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=364550#m364705 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)