Skip to content

Commit

Permalink
Use monotonic time for EXI probe
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Aug 21, 2024
1 parent 1ed38ae commit a23a4ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion libogc/exi.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ static s32 __exi_probe(s32 nChn)
last_exi_idtime[nChn] = 0;
}
if(_exiReg[nChn][0]&EXI_EXT_BIT) {
time = gettime();
time = __SYS_GetSystemTime();
if(last_exi_idtime[nChn]==0) last_exi_idtime[nChn] = time;
if((val=diff_usec(last_exi_idtime[nChn],time)+10)<30) ret = 0;
else ret = 1;
Expand Down
1 change: 0 additions & 1 deletion libogc/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,6 @@ void __SYS_SetTime(s64 time)
now += *pBootTime;
*pBootTime = now;
settime(time);
EXI_ProbeReset();
_CPU_ISR_Restore(level);
}

Expand Down

0 comments on commit a23a4ef

Please sign in to comment.