Skip to content

Commit d1afe94

Browse files
committed
Don't use time from interface
1 parent 8ca83b2 commit d1afe94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

EdiabasLib/EdiabasLibConfigTool/FormMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ private void AddFtdiDevices(ListView listView)
799799
sbInfo.Append(")");
800800
}
801801

802-
int maxLatencyTimer = Math.Max(usbInfo.LatencyTimer, usbInfo.MaxRegLatencyTimer);
802+
int maxLatencyTimer = usbInfo.MaxRegLatencyTimer;
803803
if (sbInfo.Length > 0)
804804
{
805805
sbInfo.Append(" / ");

EdiabasLib/EdiabasLibConfigTool/Test.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ private bool RunUsbTest(Patch.UsbInfo usbInfo, out bool resetRequired)
555555

556556
if (usbInfo != null)
557557
{
558-
int maxLatencyTimer = Math.Max(usbInfo.LatencyTimer, usbInfo.MaxRegLatencyTimer);
558+
int maxLatencyTimer = usbInfo.MaxRegLatencyTimer;
559559
if (maxLatencyTimer > FtdiLatencyTimer)
560560
{
561561
sr.Append("\r\n");

0 commit comments

Comments
 (0)