Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] ISR not exiting?

2009-02-25 by Bob Paddock

>>if ((Raw_Data_Size = 0) & !(GICR & (1<< INT0)))

> if ((Raw_Data_Size == 0) && !(GICR & (1 << INT0)))
> (note usage of '==' and '&&')

Always put the constants on the left:

(0 ==Raw_Data_Size)

then the compiler tells you
when you make the:

 (Raw_Data_Size = 0)

type errors, because you can not assign
a value to a constant.


-- 
http://www.wearablesmartsensors.com/
http://www.softwaresafety.net/
http://www.designer-iii.com/
http://www.unusualresearch.com/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.