Hey guys!
I made a board and defined it back in version 1.6.3, which worked fine. I just updated to 1.6.7 and sleep is broken for it.
I'm calling sleep the usual way:
set_sleep_mode(SLEEP_MODE_PWR_DOWN);
But the IDE reports the following warning when compiling:
In file included path_to_file:1:0:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/sleep.h:634:6: error: #error "No SLEEP mode defined for this device."
#error "No SLEEP mode defined for this device."
^
My board definition is pasted at the end, but I don't know what changed in 1.6.7! I'm guessing it has to do with the line
wsx328p.build.board=AVR_ATMEGA328P
##############################################################
wsx328p.name = WSX w/ ATmega328P @ 4MHz
wsx328p.upload.protocol=arduino
wsx328p.upload.maximum_size=32256
#wsx328p.upload.speed=19200
wsx328p.upload.speed=9600
wsx328p.bootloader.low_fuses=0xfd
wsx328p.bootloader.high_fuses=0xde
wsx328p.bootloader.extended_fuses=0x05
wsx328p.bootloader.file=optiboot/optiboot_atmega328p_4mhz.hex
wsx328p.bootloader.unlock_bits=0x3F
wsx328p.bootloader.lock_bits=0x2F
wsx328p.bootloader.tool=arduino:avrdude
wsx328p.build.mcu=atmega328p
wsx328p.build.f_cpu=4000000L
wsx328p.build.core=arduino
wsx328p.build.variant=standard
wsx328p.build.board=AVR_ATMEGA328P
wsx328p.upload.tool=arduino:avrdude
##############################################################
Thank you all in advance!