fixed last-value for buttons. Thank you, Ken.

This commit is contained in:
skarg
2012-09-29 20:33:38 +00:00
parent 9d9440e061
commit 2f8551d2e9
@@ -99,8 +99,10 @@ void input_task(
/* pins used are PB4, PB3, PB2, PB1, PB0 */
value = BITMASK_CHECK(PINB, 0x1F);
if (value == old_buttons) {
/* stable value */
Buttons = old_buttons;
}
old_buttons = value;
}
#if BDK_V1_HACK
input_switch_workaround();