Serial port (/dev/ttySX) question.

Mikkel mikkel at infinity-ltd.com
Sun Jan 31 01:03:59 UTC 2010


On 01/30/2010 06:25 PM, Gene Heskett wrote:
> 
> Q?  This code uses the 'sleep(1)' call to time its repeat scans.  It is using 
> no cpu as its the bottom item on an htop sorted by use report.
> 
> I assume I can go into the tarball and change those 2 sleep calls to 
> sleep(0.05) to get 20 scans a second?  I'm going to try it anyway & see if it 
> will still build.
> 
Nope - sleep only accepts an integer value. Using sleep, 1 second it
the best you will get.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20100130/28183b6a/attachment.bin 


More information about the users mailing list