On Thu, Jul 24, 2014 at 10:56:07PM -0400, Josh Koffman wrote: > Well, I've finally found a bit of time to come back to my C projects, > after a few months away. And boy...a few months makes a huge > difference. I feel like I'm once again swinging in the dark. >=20 > I'm struggling with this snippet of code: >=20 > if(testbit(this_led, 23)) > { // test fixed bit 23 > SSP2BUF =3D ws2811_one; > } > else > { > SSP2BUF =3D ws2811_zero; > } >=20 > I'm including the whole snippet even though it's just the assignment > lines (SSP2BUF=3D XXX) that cause the error on their own. I get these > errors when I try to compile: >=20 > ws2812_lib.c:45: error: (192) undefined identifier "b" > ws2812_lib.c:45: error: (226) char const too long > ws2812_lib.c:45: error: (195) expression syntax >=20 > They are repeated twice, once per line above. >=20 > The two constants are defined as 8 bits long. >=20 > Any thoughts? I've been staring at this one too long. Nothing obvious. Show us all your #defines. It probably relates to one of them. Show us the line numbers too. --=20 James Cameron http://quozl.linux.org.au/ --=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 .