]> www.fi.muni.cz Git - bike-lights.git/commit
firmware: buttons-press and pwrdown rework
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 21 Nov 2012 15:05:37 +0000 (16:05 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 21 Nov 2012 15:05:37 +0000 (16:05 +0100)
commit47e678a90062fa2dbc6cb8f9e5efc81072f5dcc5
tree905c80c67ae1d9f9678d9c5d40163e26a35820dd
parented608010c0a708b9be0d3577d7f4d3313eb2e851
firmware: buttons-press and pwrdown rework

Reworked short and long button presses. The long press is now also
reported only _after_ release, which allows us to simplify the power-down
case in buttons.c, and even in main.c.
firmware/buttons.c
firmware/lights.h
firmware/main.c