Page 1 of 1

USB Serial timout return value like Serial component

Posted: Sat Nov 21, 2015 12:30 am
by kersing
The RS232 component allows setting the return type to an integer to be able to distinguish between 255 and time-out. This feature would be useful for the USB serial component as well.

[Edit] Same request for circular buffer.

Re: USB Serial timout return value like Serial component

Posted: Mon Nov 23, 2015 12:39 pm
by Benj
Hi Jac,

Some good suggestions there. The mods should work for both sim and download. I've also done the FAT as it could also do with it for the readbytefromfile function to signify the end of file. All component should default to the original 8-bit mode to try and ensure we do not break any existing programs.
FAT.fcpx
(64.54 KiB) Downloaded 273 times
USB_Serial.fcpx
(15.99 KiB) Downloaded 259 times
CircularBuffer.fcpx
(5.69 KiB) Downloaded 261 times
Let me know how you get on and if this is ok then I'll push the changes to the weekly build release files.