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.
kersing
Valued Contributor
Valued Contributor
Posts: 1873
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 530 times
Been thanked: 1040 times
Contact:

USB Serial timout return value like Serial component

Postby kersing » Sat Nov 21, 2015 12:30 am

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.
These users thanked the author kersing for the post (total 2):
dazz (Sat Nov 21, 2015 1:06 pm) • Benj (Mon Nov 23, 2015 12:14 pm)
Rating: 11.11%
 
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

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

Re: USB Serial timout return value like Serial component

Postby Benj » Mon Nov 23, 2015 12:39 pm

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 73 times

USB_Serial.fcpx
(15.99 KiB) Downloaded 65 times

CircularBuffer.fcpx
(5.69 KiB) Downloaded 68 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.
These users thanked the author Benj for the post:
kersing (Mon Nov 23, 2015 8:16 pm)
Rating: 5.56%