breaker27 / smarthomatic

smarthomatic
http://www.smarthomatic.org
34 stars 12 forks source link

Remove enabling/disabling pullups while power down #82

Closed Inhumierer closed 10 years ago

Inhumierer commented 10 years ago

No need to enable & disable the internal pullups everytime the "power down" mode is used. The uC does this automatically as long as PCINT on this pin is unused..

breaker27 commented 10 years ago

This wastes some power: I recently added that one can set how often a sensor should be measured (number of wake ups of the device). When the device wakes up often and the DigitalPin sensor is configured to measure only rarely, it would waste power to switch on the pull-up resistors without needing them. Therefore I don't want to add this change.