Order of the Butterfly
Posts: 404 from 2014/6/11
From: Germany
Quote:jacadcaps wrote:
Try removing
Code:
/* ... there is something on the air */
call SERWaitIO(serial.Id, "b1")
from serialRead and see if this helps. I don't know exact specifics, but it looks as though you're trying to wait for IO that hasn't started yet.
That helps in so far that it doesn't hang anymore. Button clicks work receive and send also.
The problem is now that one byte of the receive seems to be discarded.
Probably the one from:
Code:
serial.Post=1
call SERRead(serial.Id, 1)
return ""
Where the SERWaitIO was waiting for.