Josh, Which compiler are you using? Also is this inside a function call=20 or inside main()? Thanks, rich! On 7/24/2014 9:56 PM, Josh Koffman wrote: > Hi all, > > 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. > > I'm struggling with this snippet of code: > > if(testbit(this_led, 23)) > { // test fixed bit 23 > SSP2BUF =3D ws2811_one; > } > else > { > SSP2BUF =3D ws2811_zero; > } > > 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: > > 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 > > They are repeated twice, once per line above. > > The two constants are defined as 8 bits long. > > Any thoughts? I've been staring at this one too long. > > Josh --=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 .