rocketscream / Low-Power

Low Power Library for Arduino
www.rocketscream.com
1.27k stars 346 forks source link

ATmega168 fixes. #33

Open rodionkvashnin opened 7 years ago

rodionkvashnin commented 7 years ago

Hi! Thanks for the great library! I resolved compilation error with ATmega168 by guarding powerExtStandby() method declaration and definition with preprocessor symbol SLEEP_MODE_EXT_STANDBY because ATmega168 doesn't support Extended Standby anyway. I also added check for other ATmega168 variants so users will be able to use this library with these MCUs (including Ext Standby for P devices). Related issues #14, #29.