Hi,

I am trying to read data from a serial port using Luvit. My simple example 
is running, however, I have an issue with fs_read() as it calls the 
callback function even if no data are received.

This is my 
example: https://gist.github.com/joerg-krause/cba5a56577a0483ceb8ea4ecda5ff0ba

This is the output:

# luvit main.lua 
''
''
''
''
''

My problem with this issue is that it consumes much more CPU cycles on my 
embedded Linux system than reading from "/dev/input/event0".

Any ideas what's wrong here?

-- 
You received this message because you are subscribed to the Google Groups 
"luvit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to