Skip to content

Commit

Permalink
Bumped up detection time to 5s, fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanlu committed Jul 30, 2017
1 parent 3cc5365 commit adbaa4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ int module_start(SceSize args, void *argp) {
return SCE_KERNEL_START_SUCCESS;
}

// wait ~2 second max for USB to be detected
// wait ~5 second max for USB to be detected
// this may look bad but the Vita does this to detect ux0 so ¯\_(ツ)_/¯
for (int i = 0; i < 11; i++) {
// try to detect USB plugin 10 times for 0.2s each
for (int i = 0; i < 26; i++) {
// try to detect USB plugin 25 times for 0.2s each
if (exists("sdstor0:uma-lp-act-entire")) {
shellKernelRedirectUx0();
io_remount(MOUNT_POINT_ID);
Expand Down

0 comments on commit adbaa4e

Please sign in to comment.