[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Accessing function and strings in flash in theATMega
From: |
Robert von Knobloch |
Subject: |
Re: [avr-gcc-list] Accessing function and strings in flash in theATMega 644 |
Date: |
Thu, 05 Feb 2009 10:40:22 +0100 |
User-agent: |
Thunderbird 1.5.0.14 (X11/20060911) |
>Message: 7
>Date: Thu, 5 Feb 2009 10:08:20 +0100
>From: <address@hidden>
>Subject: Re: [avr-gcc-list] Accessing function and strings in flash in
>theATMega 644
>To: address@hidden
>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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [avr-gcc-list] Accessing function and strings in flash in theATMega 644,
Robert von Knobloch <=