diff --git a/source/network/CPTCPServer.cpp b/source/network/CPTCPServer.cpp index b092264..a94a2fe 100644 --- a/source/network/CPTCPServer.cpp +++ b/source/network/CPTCPServer.cpp @@ -86,7 +86,7 @@ bool CPTCPServer::whileLoop() { if(wiiu_errno != 6) { return false; } - OSSleepTicks(OSMillisecondsToTicks(1000)); + OSSleepTicks(OSMicrosecondsToTicks(1000)); continue; } //DEBUG_FUNCTION_LINE("got byte from tcp! %01X\n",ret); diff --git a/source/network/UDPServer.cpp b/source/network/UDPServer.cpp index c7a50d3..d9d1bc0 100644 --- a/source/network/UDPServer.cpp +++ b/source/network/UDPServer.cpp @@ -104,7 +104,7 @@ void UDPServer::DoUDPThreadInternal(){ n = recv(sockfd,buffer,MAX_UDP_SIZE,0); if (n < 0){ s32 errno_ = wiiu_errno; - OSSleepTicks(OSMillisecondsToTicks(2000)); + OSSleepTicks(OSMicrosecondsToTicks(2000)); if(errno_ != 11 && errno_ != 9){ break; } diff --git a/source/patcher/ControllerPatcherHID.cpp b/source/patcher/ControllerPatcherHID.cpp index 4acb710..ea5bc85 100644 --- a/source/patcher/ControllerPatcherHID.cpp +++ b/source/patcher/ControllerPatcherHID.cpp @@ -99,7 +99,7 @@ void ControllerPatcherHID::myHIDReadCallback(u32 handle, s32 error, unsigned cha HIDReadCallback(handle,buf,bytes_transfered,usr); if(usr->slotdata.hidmask == gHID_LIST_DS4){ - OSSleepTicks(OSMillisecondsToTicks(2000)); //DS4 is way tooo fast. sleeping to reduce lag. (need to check the other pads) + OSSleepTicks(OSMicrosecondsToTicks(2000)); //DS4 is way tooo fast. sleeping to reduce lag. (need to check the other pads) } HIDRead(handle, usr->buf, bytes_transfered, myHIDReadCallback, usr); }