summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/maze.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/maze.c b/apps/plugins/maze.c
index e84173944b..b093a6439d 100644
--- a/apps/plugins/maze.c
+++ b/apps/plugins/maze.c
@@ -490,7 +490,10 @@ static void maze_move_player_left(struct maze* maze)
/**********************************/
enum plugin_status plugin_start(const void* parameter)
{
- int button, lastbutton = BUTTON_NONE;
+ int button;
+#ifdef MAZE_NEW_PRE
+ int lastbutton = BUTTON_NONE;
+#endif
int quit = 0;
int i;
struct maze maze;
@@ -581,8 +584,10 @@ enum plugin_status plugin_start(const void* parameter)
}
break;
}
+#ifdef MAZE_NEW_PRE
if( button != BUTTON_NONE )
lastbutton = button;
+#endif
}
/* Turn on backlight timeout (revert to settings) */
backlight_use_settings();