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.
Valued Contributor
Valued Contributor
Posts: 1893
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 539 times
Been thanked: 1058 times

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

― C.S. Lewis

User avatar
Matrix Staff
Posts: 14557
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4590 times
Been thanked: 4235 times

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.

(64.54 KiB) Downloaded 93 times

(15.99 KiB) Downloaded 89 times

(5.69 KiB) Downloaded 88 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.26%