Reduce the sleep time of the send_pending_key thread to 1ms draft

Thu, 07 Oct 2021 21:05:13 +0200

author
David Douard <david.douard@sdfa3.org>
date
Thu, 07 Oct 2021 21:05:13 +0200
changeset 67
e19b4147caa9
parent 66
48f29a1d43d6
child 68
a0f97359f266

Reduce the sleep time of the send_pending_key thread to 1ms

to get a chance of sending a keycode when the CPU flood the FP with DSP
messages (e.g. after the last 'Last-N' value).

src/hp34comm.cpp file | annotate | diff | comparison | revisions
--- a/src/hp34comm.cpp	Mon Oct 04 21:15:35 2021 +0200
+++ b/src/hp34comm.cpp	Thu Oct 07 21:05:13 2021 +0200
@@ -91,7 +91,7 @@
 		  }
 	  }
 	  //else // prevent from flooding the main unit
-	  ThisThread::sleep_for(5ms);
+	  ThisThread::sleep_for(1ms);
   }
 }
 

mercurial