From f0e6e5f3c350d473844db1c3c2532dec3567cdcb Mon Sep 17 00:00:00 2001 From: T-moe Date: Fri, 29 Jan 2016 16:37:04 +0100 Subject: [PATCH] Reverted device name in st_util_daemon.sh. Added missing edge clear in game.c --- src/game.c | 7 +++++++ utils/st-util-daemon.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/game.c b/src/game.c index 749965e..316b3c0 100644 --- a/src/game.c +++ b/src/game.c @@ -418,6 +418,13 @@ bool game_step_prestart(game_t* game) { LCD_DisplayStringXY(TG_HEADER_PLAYER_X+i*TG_HEADER_PLAYER_WIDTH, TG_HEADER_PLAYER_Y, buf); // Print everything } + + //Read all "cached" edges, to prevent direction changes on start + io_button_has_edge(BTN_PLAYER_1_LEFT); + io_button_has_edge(BTN_PLAYER_1_RIGHT); + io_button_has_edge(BTN_PLAYER_2_LEFT); + io_button_has_edge(BTN_PLAYER_2_RIGHT); + return true; } diff --git a/utils/st-util-daemon.sh b/utils/st-util-daemon.sh index 8463ccc..f140225 100755 --- a/utils/st-util-daemon.sh +++ b/utils/st-util-daemon.sh @@ -4,7 +4,7 @@ # pid=/tmp/st-util.pid -isp=/dev/stlinkv2_8 +isp=/dev/stlinkv2_2 case "$1" in "start")