USB Serial timout return value like Serial component

Please add any feature requests for Flowcode version 6 here

Moderator: Benj

Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
Post Reply
kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

USB Serial timout return value like Serial component

Post 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.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USB Serial timout return value like Serial component

Post 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 270 times
USB_Serial.fcpx
(15.99 KiB) Downloaded 257 times
CircularBuffer.fcpx
(5.69 KiB) Downloaded 260 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.

Post Reply