diff --git a/TouchPanel/IO/patch_NewTouchPanel.cs b/TouchPanel/IO/patch_NewTouchPanel.cs index ce28cbf..37812ce 100644 --- a/TouchPanel/IO/patch_NewTouchPanel.cs +++ b/TouchPanel/IO/patch_NewTouchPanel.cs @@ -43,7 +43,11 @@ class patch_NewTouchPanel : NewTouchPanel private extern void orig_Recv(); private void Recv() { - Thread.Sleep(_touchPanelDelayMsec); + if (_touchPanelDelayMsec > 0) + { + Thread.Sleep(_touchPanelDelayMsec); + } + orig_Recv(); }