From d3018707176208b564f17cef588b31f153c349c3 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 22 Jun 2021 11:31:32 +0900 Subject: [PATCH] adb_usb: Reset devices on startup This restores devices to default state on warm startup like flashing firmware --- converter/adb_usb/matrix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/converter/adb_usb/matrix.c b/converter/adb_usb/matrix.c index 845c7fab..16e1a621 100644 --- a/converter/adb_usb/matrix.c +++ b/converter/adb_usb/matrix.c @@ -71,6 +71,8 @@ void matrix_init(void) DDRD |= (1<<6); PORTD |= (1<<6); adb_host_init(); + adb_host_reset_hard(); + //adb_host_reset(); // some of devices done't recognize // AEK/AEKII(ANSI/ISO) startup is slower. Without proper delay // it would fail to recognize layout and enable Extended protocol.