Reverted device name in st_util_daemon.sh. Added missing edge clear in game.c

This commit is contained in:
T-moe
2016-01-29 16:37:04 +01:00
parent 2166d9a375
commit f0e6e5f3c3
2 changed files with 8 additions and 1 deletions

View File

@@ -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 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; return true;
} }

View File

@@ -4,7 +4,7 @@
# #
pid=/tmp/st-util.pid pid=/tmp/st-util.pid
isp=/dev/stlinkv2_8 isp=/dev/stlinkv2_2
case "$1" in case "$1" in
"start") "start")