From 4a8ab75e3269e0e82fcdd9dd1d6e41e40d179df9 Mon Sep 17 00:00:00 2001 From: rehius <128579193+rehius@users.noreply.github.com> Date: Fri, 30 Aug 2024 06:29:29 +0000 Subject: [PATCH] Update board_detect.c --- board_detect.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/board_detect.c b/board_detect.c index 23d7b32..c25beed 100644 --- a/board_detect.c +++ b/board_detect.c @@ -20,7 +20,7 @@ enum board_type { enum board_type cur_board = BOARD_WS; -bool detect_by_pull_up(int frc_pin, int det_pin, bool up) +bool detect_by_pull(int frc_pin, int det_pin, bool up) { bool result = false; if (frc_pin >= 0) @@ -40,22 +40,22 @@ bool detect_by_pull_up(int frc_pin, int det_pin, bool up) bool test_xiao() { - return detect_by_pull_up(1, 2, 1); + return detect_by_pull(1, 2, 1); } bool test_itsy() { - return detect_by_pull_up(3, 2, 1); + return detect_by_pull(3, 2, 1); } bool test_pico() { - return detect_by_pull_up(-1, 22, 1); + return detect_by_pull(-1, 22, 1); } bool test_ws() { - return detect_by_pull_up(-1, 25, 1); + return detect_by_pull(-1, 25, 1); } bool test_wt() @@ -65,7 +65,7 @@ bool test_wt() bool test_sqc() { - return detect_by_pull_up(-1, 17, 1); + return detect_by_pull(-1, 17, 1); } void detect_board()