Browse Source

sleep through read retries

Baglio Tabifata 4 years ago
parent
commit
7b2e79613f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/net/hkzlab/dupal/boardio/DuPALManager.java

+ 2 - 1
src/net/hkzlab/dupal/boardio/DuPALManager.java

@@ -87,8 +87,9 @@ public class DuPALManager {
                 
                 while((resp == null) && (retries-- > 0)) {
                     resp = serport.readString();
+                    try { Thread.sleep(1); } catch(InterruptedException e) {};
                 }
-                
+
                 if(resp != null) resp = resp.trim();
                 
                 logger.debug("Response <- " + resp);