On 2013-04-18 10:59 AM, Joe Wronski wrote: > Having never worked with any RTOS due to ROM and RAM limitations, I find= =20 > Protothreads fascinating. Where my cow-orkers and I had hand crafted=20 > state machines which closely resembled the Protothreads expanded macros,= =20 > using PT would have made the code more readable and maintainable. I had= =20 > never considered using the __LINE__ macro for anything other than=20 > compiler error and warning info. And I never realized that you could=20 > put the case : argument of a switch within a while loop (Duff's Device). Yup, C switches behave somewhat like labels. The cases are valid anywhere within the switch. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .