Minor tweak

This commit is contained in:
Travis Nickles 2019-01-09 23:57:22 -06:00
parent a253daa95d
commit eb45a6c06c

View File

@ -658,10 +658,14 @@ namespace DS4Windows
byteR[i] = byteB[i]; byteR[i] = byteB[i];
} }
//outReportBuffer.CopyTo(outputReport, 0); //outReportBuffer.CopyTo(outputReport, 0);
if (outputPendCount > 0) if (outputPendCount > 1)
outputPendCount--; outputPendCount--;
else if (outputPendCount == 1)
if (outputPendCount == 0) {
outputPendCount--;
standbySw.Restart();
}
else
standbySw.Restart(); standbySw.Restart();
} }
@ -1205,10 +1209,14 @@ namespace DS4Windows
outputPendCount = 3; outputPendCount = 3;
standbySw.Reset(); standbySw.Reset();
} }
else if (outputPendCount > 0) else if (outputPendCount > 1)
outputPendCount--; outputPendCount--;
else if (outputPendCount == 1)
if (outputPendCount == 0) {
outputPendCount--;
standbySw.Restart();
}
else
standbySw.Restart(); standbySw.Restart();
if (usingBT) if (usingBT)