adb_usb: Reset devices on startup

This restores devices to default state on warm startup like flashing firmware
This commit is contained in:
tmk 2021-06-22 11:31:32 +09:00
parent a532b426c4
commit d301870717

View file

@ -71,6 +71,8 @@ void matrix_init(void)
DDRD |= (1<<6); PORTD |= (1<<6); DDRD |= (1<<6); PORTD |= (1<<6);
adb_host_init(); 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 // AEK/AEKII(ANSI/ISO) startup is slower. Without proper delay
// it would fail to recognize layout and enable Extended protocol. // it would fail to recognize layout and enable Extended protocol.