From 33d5cf0305e1901513a87d5d96b13aa1bc136630 Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Thu, 21 May 2020 19:25:58 -0400 Subject: [PATCH] [DC/GC] Fix DC detection We should detect falling edge on D0 first but I always observe it on D1. Swap it for now. Maybe HW dont see D0 falling edge and trig on D1 rising edge even if we set any edge?? --- main/wired/detect.c | 2 +- main/wired/nsi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/wired/detect.c b/main/wired/detect.c index 5c5067e7..ba8a8168 100644 --- a/main/wired/detect.c +++ b/main/wired/detect.c @@ -22,7 +22,7 @@ static const uint8_t detect_pin_high[] = { }; static const uint8_t system_id_low[] = { - N64, DC, GC, WII_EXT + N64, GC, DC, WII_EXT }; static const uint8_t system_id_high[] = { diff --git a/main/wired/nsi.c b/main/wired/nsi.c index ae359773..2a8ae8be 100644 --- a/main/wired/nsi.c +++ b/main/wired/nsi.c @@ -36,7 +36,7 @@ enum { }; static const uint8_t gpio_pin[4][2] = { - {19, 22}, + {19, 21}, { 3, 3}, {26, 26}, {27, 27},