From cbf13549037a5494da20c7eec54213099f9be752 Mon Sep 17 00:00:00 2001 From: jimmystones Date: Sun, 17 Oct 2021 21:28:35 +0100 Subject: [PATCH] Correct start page and change code --- src/inputtester.c | 8 ++++++-- src/os.c | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/inputtester.c b/src/inputtester.c index 4bb2455..6c8ae24 100644 --- a/src/inputtester.c +++ b/src/inputtester.c @@ -52,7 +52,7 @@ unsigned char con_cursortimer = 1; char modeswitchtimer_select = 0; char modeswitchtimer_start = 0; -#define HISTORY_LENGTH 6 +#define HISTORY_LENGTH 7 char history[HISTORY_LENGTH]; #define PAD_COUNT 2 @@ -313,8 +313,12 @@ void handle_codes() { pushhistory(4); } + if (!input_a && input_a_last) + { + pushhistory(5); + } // Check for SNEK code - if (history[0] == 1 && history[1] == 1 && history[2] == 2 && history[3] == 2 && history[4] == 3 && history[5] == 4) + if (history[0] == 1 && history[1] == 1 && history[2] == 2 && history[3] == 2 && history[4] == 3 && history[5] == 4 && history[6] == 5) { nextstate = STATE_START_ATTRACT; pushhistory(0); diff --git a/src/os.c b/src/os.c index 172cb7f..7f91241 100644 --- a/src/os.c +++ b/src/os.c @@ -103,9 +103,9 @@ void main() default: // Start default state - //start_inputtester_digital(); + start_inputtester_digital(); //start_inputtester_advanced(); - start_inputtester_analog(); + //start_inputtester_analog(); //start_btntest(); break; }