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.
USB Serial timout return value like Serial component
Moderator: Benj
Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
Only feature requests will be considered here. General questions should not be posted in this forum.
-
- 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
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
- 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
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.
Let me know how you get on and if this is ok then I'll push the changes to the weekly build release files.
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.
Let me know how you get on and if this is ok then I'll push the changes to the weekly build release files.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel