diff --git a/skprx/main.c b/skprx/main.c index 62b2c19..71f462f 100644 --- a/skprx/main.c +++ b/skprx/main.c @@ -220,7 +220,6 @@ static int vitastick_udcd_process_request(int recipient, int arg, SceUdcdEP0Devi switch (descriptor_type) { case HID_DESCRIPTOR_REPORT: send_hid_report_desc(); - ksceKernelSetEventFlag(usb_event_flag_id, EVF_CONNECTED); break; } } @@ -279,8 +278,11 @@ static int vitastick_udcd_attach(int usb_version) { LOG("vitastick_udcd_attach %d\n", usb_version); + ksceUdcdReqCancelAll(&endpoints[1]); ksceUdcdClearFIFO(&endpoints[1]); + ksceKernelSetEventFlag(usb_event_flag_id, EVF_CONNECTED); + return 0; }