On May 17, 2007, at 20:45 , kitts wrote:
You need to make sCommandReceived a volatile variable.
Yeah, I realized that, thanks. I'm fully aware of the dangers of the
optimizer, and was operating from the assumption that it was turned
off. I should've known.
Thanks!
--
Rick
On Friday 18 May 2007 9:09:32 am Rick Mann wrote:
I have two source files. In Serial.c, I define a global:
charsCommandReceived;
in the corresponding Serial.h file, I have:
extern char sCommandReceived;
sCommandReceived is set to 1 when enough bytes have been copied into
a buffer
Rick Mann [EMAIL PROTECTED] wrote: On an AVR ATmega128:
I have two source files. In Serial.c, I define a global:
char sCommandReceived;
in the corresponding Serial.h file, I have:
extern char sCommandReceived;
sCommandReceived is set to 1 when enough bytes have been copied into
a buffer