Hi,
There was an issue with max string length for the uart being limited to 256, I am wondering if the circular buffer has the same limitation as I am getting the string as expected now but the code still does not work. Before I carry on trying to find out where the issue is I would like to know if that has a limit of 256 which could also cause a problem.
Regards,
Bob
Circular buffer max length
-
- Posts: 279
- http://meble-kuchenne.info.pl
- Joined: Sat Mar 19, 2022 4:53 pm
- Has thanked: 25 times
- Been thanked: 30 times
-
- Matrix Staff
- Posts: 1775
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 454 times
- Been thanked: 612 times
Re: Circular buffer max length
Hi Bob,
I checked and it looks like there isn't an 8-bit limitation here on the CB or the length of the returned string. You might need to attach your project so we can try and help.
I checked and it looks like there isn't an 8-bit limitation here on the CB or the length of the returned string. You might need to attach your project so we can try and help.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Valued Contributor
- Posts: 1028
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 107 times
- Been thanked: 533 times
Re: Circular buffer max length
If it's the same project as in the UART thread - you have idx as a byte in Parse_Rx which may cause an issue...
Note that you can access characters in a string using .c = .str[.idx] rather using mid$ etc
Martin
Note that you can access characters in a string using .c = .str[.idx] rather using mid$ etc
Martin