Minor tweak

This commit is contained in:
Travis Nickles 2018-03-06 18:01:57 -06:00
parent cc4bc7f05c
commit 60847ee54e

View File

@ -521,22 +521,17 @@ namespace DS4Windows
//Console.WriteLine(MacAddress.ToString() + " " + System.DateTime.UtcNow.ToString("o") + "> start"); //Console.WriteLine(MacAddress.ToString() + " " + System.DateTime.UtcNow.ToString("o") + "> start");
sendOutputReport(true); // initialize the output report sendOutputReport(true); // initialize the output report
//if (conType == ConnectionType.BT) ds4Output = new Thread(performDs4Output);
{ ds4Output.Priority = ThreadPriority.AboveNormal;
// Only use the output thread for Bluetooth connections. ds4Output.Name = "DS4 Output thread: " + Mac;
// USB will utilize overlapped IO instead. ds4Output.IsBackground = true;
ds4Output = new Thread(performDs4Output); ds4Output.Start();
ds4Output.Priority = ThreadPriority.AboveNormal;
ds4Output.Name = "DS4 Output thread: " + Mac;
ds4Output.IsBackground = true;
ds4Output.Start();
timeoutCheckThread = new Thread(timeoutTestThread); timeoutCheckThread = new Thread(timeoutTestThread);
timeoutCheckThread.Priority = ThreadPriority.BelowNormal; timeoutCheckThread.Priority = ThreadPriority.BelowNormal;
timeoutCheckThread.Name = "DS4 Timeout thread: " + Mac; timeoutCheckThread.Name = "DS4 Timeout thread: " + Mac;
timeoutCheckThread.IsBackground = true; timeoutCheckThread.IsBackground = true;
timeoutCheckThread.Start(); timeoutCheckThread.Start();
}
ds4Input = new Thread(performDs4Input); ds4Input = new Thread(performDs4Input);
ds4Input.Priority = ThreadPriority.AboveNormal; ds4Input.Priority = ThreadPriority.AboveNormal;
@ -1062,10 +1057,6 @@ namespace DS4Windows
if (Report != null) if (Report != null)
Report(this, EventArgs.Empty); Report(this, EventArgs.Empty);
if (conType == ConnectionType.BT)
{
syncWriteReport = false;
}
sendOutputReport(false); sendOutputReport(false);
if (!string.IsNullOrEmpty(currerror)) if (!string.IsNullOrEmpty(currerror))