From e815f93a66ea55524606037d3b32651018eb7e37 Mon Sep 17 00:00:00 2001 From: Janusz Krzysztofik Date: Thu, 14 May 2020 22:10:35 +0200 Subject: [PATCH] Revert "Drop millisleep(10) from xread() not only on Darwin" This reverts commit 5461658d800667fbb3d5311a6b8fa9f5eced5c81. It occurred the millisleep() might have been added still by Charles W. Sullivan as a workaround for buggy USB serial hardware. Restore it. Link: https://github.com/HeyuX10Automation/heyu/issues/22 Signed-off-by: Janusz Krzysztofik --- xread.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xread.c b/xread.c index d46e51d..009630d 100644 --- a/xread.c +++ b/xread.c @@ -144,6 +144,9 @@ unsigned char *buf; { break; } +#ifndef DARWIN + millisleep(10); /* Added by CWS */ +#endif continue; } if( (i < 0) && (i_am_relay != 1) )