Skip to content

Commit

Permalink
Remove unnecessary usleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Aug 28, 2024
1 parent 4c866d2 commit 15f8f31
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions libogc/sdgecko_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,10 +724,10 @@ static s32 __card_dataread(s32 drv_no,void *buf,u32 len)
EXI_Unlock(drv_no);
return CARDIO_ERROR_IOERROR;
}
}

/* sleep 1us*/
usleep(1);
/* sleep 1us*/
usleep(1);
}

res[0] = res[1] = 0xff;
if(EXI_ImmEx(drv_no,res,2,EXI_READWRITE)==0) {
Expand Down Expand Up @@ -783,9 +783,6 @@ static s32 __card_datawrite(s32 drv_no,void *buf,u32 len)
return CARDIO_ERROR_IOERROR;
}

/* sleep 1us*/
usleep(1);

ret = CARDIO_ERROR_READY;
if(EXI_ImmEx(drv_no,&crc,2,EXI_WRITE)==0) ret = CARDIO_ERROR_IOERROR;

Expand Down Expand Up @@ -826,9 +823,6 @@ static s32 __card_multidatawrite(s32 drv_no,void *buf,u32 len)
EXI_Unlock(drv_no);
return CARDIO_ERROR_IOERROR;
}

/* sleep 1us*/
usleep(1);

ret = CARDIO_ERROR_READY;
if(EXI_ImmEx(drv_no,&crc,2,EXI_WRITE)==0) ret = CARDIO_ERROR_IOERROR;
Expand Down

0 comments on commit 15f8f31

Please sign in to comment.