]> oss.titaniummirror.com Git - rgblamp.git/commit
Update buttons_sleep() for auto-off restart case
authorR. Steve McKown <rsmckown@gmail.com>
Wed, 7 Dec 2011 02:07:47 +0000 (19:07 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Wed, 7 Dec 2011 02:07:47 +0000 (19:07 -0700)
commitcf3abde4b8055ab1d26116b1f9af47951d1a0395
tree2860d96450290dad621449a01d3400c5418b974b
parent7852f013105442dfe0ff800f32151e94f98a554a
Update buttons_sleep() for auto-off restart case

buttons_sleep() now first sleeps until the rocker switch is turned off
before then sleeping until it is turned on.  This allows the function to
be used for the auto-off case, where the lamp must stay in auto-off when
the rocker switch is still in position B.  To wake from auto-off manually,
one simply turns the rocker off then back to either position A or B.
buttons.c
buttons.h