always consuming button events

(bug fix: mote falls asleep during fast button clicks)
This commit is contained in:
fros4943 2007-04-02 14:14:26 +00:00
parent 5a96a9cdb7
commit 3d5298ab69
3 changed files with 15 additions and 8 deletions

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: button-sensor.c,v 1.3 2007/03/22 20:37:34 fros4943 Exp $
* $Id: button-sensor.c,v 1.4 2007/04/02 14:14:28 fros4943 Exp $
*/
#include "lib/sensors.h"
@ -100,9 +100,9 @@ doInterfaceActionsBeforeTick(void)
if(timer_expired(&debouncetimer)) {
timer_set(&debouncetimer, CLOCK_SECOND / 10);
sensors_changed(&button_sensor);
simButtonChanged = 0;
}
}
simButtonChanged = 0;
}
/*---------------------------------------------------------------------------*/
static void