Skip to content

Commit

Permalink
Move the EVF_CONNECTED to attach
Browse files Browse the repository at this point in the history
  • Loading branch information
xerpi committed Apr 12, 2017
1 parent a80b488 commit e874361
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion skprx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit e874361

Please sign in to comment.