Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions libogc/exi.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,21 @@ void EXI_ProbeReset(void)

__exi_probe(0);
__exi_probe(1);

//kinda hack because there are no system globals to store this information
//after a reset the devices usually already have settled, so they dont need the 300ms wait
for(unsigned i = 0; i < EXI_CHANNEL_2; i++)
{
if(last_exi_idtime[i]==0)
continue;

u64 ticks = PPCMsToTicks(300) - PPCNsToTicks(300);
// avoid 0, which is not found
if(last_exi_idtime[i] == ticks)
last_exi_idtime[i] = 1;
else
last_exi_idtime[i] -= ticks;
}
}

void __exi_init(void)
Expand Down
Loading