[Top][All Lists]

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

Re: [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode

From: Theodore A. Roth
Subject: Re: [avr-libc-dev] [Bug #2633] syntax error while setting up sleep mode functionality
Date: Fri, 21 Feb 2003 14:07:50 -0800 (PST)

Ok, I can duplicate it with the sleep.h file you sent me.

The you are using sleep.h version 1.4, the latest cvs is 1.5.

You can download the latest version here:


FYI: Here's what is wrong with the file you have:

--- sleep.h.orig        2003-02-21 14:05:04.000000000 -0800
+++ sleep.h     2003-02-21 14:05:42.000000000 -0800
@@ -94,7 +94,7 @@
 #if defined(DOXYGEN)
 extern void set_sleep_mode (uint8_t mode);
-#define set_sleep_mode(mode)   (MCUCR = ((MCUCR & ~SLEEP_MODE_MASK) | (mode))
+#define set_sleep_mode(mode)   (MCUCR = ((MCUCR & ~SLEEP_MODE_MASK) | (mode)))

 /** \ingroup avr_sleep

There was a ')' missing in the set_sleep_mode macro. I fixed this in

I'm going to close this bug out.

Ted Roth

reply via email to

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