Arduino and Sleep - power save

I am trying to follow the code at http://jeelabs.org/2009/05/16/power-consumption-more-savings/

I think I have it right - but I am getting some strange Serial output.

My code is

#include <avr/interrupt.h>
#include <avr/power.h>
#include <avr/sleep.h>
#include <avr/wdt.h>

ISR(WDT_vect) {
}

void setup()
{
  Serial.begin(9600);
MCUSR &= ~(1<<WDRF);
cli();
WDTCSR |= (1 << WDCE) | (1 << WDE);
WDTCSR = 6;
WDTCSR |= bit(WDIE);
sei();

}

void loop()
{
  delay(3);
  set_sleep_mode(SLEEP_MODE_PWR_DOWN);
  sleep_mode();
  Serial.print ("\nBMP");
}

Any ideas of why I get corrupted data on the Serial Output?

I am using an Arduino Duemilanove

Chris

Which version of the IDE are you using?

AWOL:
Which version of the IDE are you using?

On that computer it is 1.01

Chris

Read this:

Thanks Nick

That helped me a lot.

chris