>Message: 7 >Date: Thu, 5 Feb 2009 10:08:20 +0100 >From: <[email protected]> >Subject: Re: [avr-gcc-list] Accessing function and strings in flash in >theATMega 644 >To: [email protected] >The expression is probably not 'too complex for the compiler' but too >complex for the programmer.
>Your intention was probably not >if (pgm_read_byte((PGM_P)(TESTIMAGE + (IMAGE_SIZE * projnum) + SIGNATURE) != >0)) >but >if (pgm_read_byte((PGM_P)(TESTIMAGE + (IMAGE_SIZE * projnum) + SIGNATURE)) != >0) >My experience is that we are almost never as clever as we think we are. >/Janne How right you are Janne, I didn't even see the missing braces until now. (Must get new reading glasses). Thanks, Robert _______________________________________________ AVR-GCC-list mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
