IOS: Adjust reply timing to be closer to real hardware

This commit is contained in:
Sepalani 2018-02-11 18:38:59 +01:00
parent 2ce7fff819
commit a663fcb977
1 changed files with 2 additions and 2 deletions

View File

@ -184,10 +184,10 @@ IPCCommandResult Device::Unsupported(const Request& request)
return GetDefaultReply(IPC_EINVAL); return GetDefaultReply(IPC_EINVAL);
} }
// Returns an IPCCommandResult for a reply that takes 250 us (arbitrarily chosen value) // Returns an IPCCommandResult for a reply that takes 25 us (based on ES::GetTicketViews)
IPCCommandResult Device::GetDefaultReply(const s32 return_value) IPCCommandResult Device::GetDefaultReply(const s32 return_value)
{ {
return {return_value, true, SystemTimers::GetTicksPerSecond() / 4000}; return {return_value, true, SystemTimers::GetTicksPerSecond() / 40000};
} }
// Returns an IPCCommandResult with no reply. Useful for async commands that will generate a reply // Returns an IPCCommandResult with no reply. Useful for async commands that will generate a reply