avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] (Newbie)2.Delay function not working as required


From: Dave Hylands
Subject: Re: [avr-gcc-list] (Newbie)2.Delay function not working as required
Date: Thu, 8 Dec 2005 07:30:58 -0800

Hi Sumeet,

On 12/8/05, Sumeet Pal Singh <address@hidden> wrote:
> The delay function is the regular one from <avr/delay.h>
>  I havce not written the delay.

Since you're not showing us the actual code that you used (since the
delay function inside <avr/delay.h> is called _delay_ms not delayma)

and since you've said that repeating the call to delay 100 times gives
the correct result, then I'd speculate that you have a semicolon at
the end of your for statement, something like this:

>  for(char i=0;i<100;i++);

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]