diff --git a/DS4Windows/DS4Forms/DS4Form.cs b/DS4Windows/DS4Forms/DS4Form.cs index 533b288..30169a2 100644 --- a/DS4Windows/DS4Forms/DS4Form.cs +++ b/DS4Windows/DS4Forms/DS4Form.cs @@ -854,7 +854,7 @@ namespace DS4Windows protected void LogDebug(DateTime Time, String Data, bool warning) { - if (lvDebug.InvokeRequired) + if (this.InvokeRequired) { LogDebugDelegate d = new LogDebugDelegate(LogDebug); try @@ -1152,7 +1152,7 @@ namespace DS4Windows protected void DeviceSerialChanged(object sender, SerialChangeArgs args) { - if (InvokeRequired) + if (this.InvokeRequired) { DeviceSerialChangedDelegate d = new DeviceSerialChangedDelegate(DeviceSerialChanged); this.BeginInvoke(d, new object[] { sender, args });