avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avrdude-dev] [patch #6866] bug #26703: [Feature Request] Support de


From: David A. Lyons
Subject: Re: [avrdude-dev] [patch #6866] bug #26703: [Feature Request] Support device reset for 'arduino' programmer type
Date: Fri, 6 Nov 2009 18:26:02 -0800

On Nov 6, 2009, at 2:17 PM, Michael Dreher wrote:
> Follow-up Comment #11, patch #6866 (project avrdude):
> ...
> To compile this version, I had to make the following change, because sleep()
> is not available on the Win32 platform:
> 
> Index: jtagmkII.c
> ===================================================================
> --- jtagmkII.c        (revision 878)
> +++ jtagmkII.c        (working copy)
> @@ -2847,7 +2847,7 @@
>   status = jtagmkII_write_SABaddr(pgm, 0xffff0c00, 0x05, 0x0000004);
> if(status < 0) {lineno = __LINE__; goto eRR;} // Power Manager
>   status = jtagmkII_write_SABaddr(pgm, 0xffff0c00, 0x05, 0x0000005);
> if(status < 0) {lineno = __LINE__; goto eRR;}
> 
> -  sleep(1);
> +  usleep(1*1000);

If it still intended to be 1 second, shouldn't there be three more zeroes (1 
million microseconds)?

Cheers,

--Dave



reply via email to

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