Full-Duplex Serial Driver v1.1
ErNa
Posts: 1,752
The following problem:
rxcheck returns -1 if input buffer is empty and $00..$FF if not. But -1 is represented by $FF, being a byte.
Doesn't that mean to limit data range to $00..$7F?
rxcheck returns -1 if input buffer is empty and $00..$FF if not. But -1 is represented by $FF, being a byte.
Doesn't that mean to limit data range to $00..$7F?
Comments
The comment should be changed from "returns -1 if no byte received, $00..$FF if byte"
to "returns -1 if no byte received, $00000000..$000000FF if byte" to ommit this confusion.
That would clearify, that the long is a container for the byte.
Post Edited (ErNa) : 10/23/2007 12:27:58 PM GMT
J