Circular buffer max length

For general Flowcode discussion that does not belong in the other sections.
Post Reply
RGV250
Posts: 264
http://meble-kuchenne.info.pl
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 23 times
Been thanked: 30 times

Circular buffer max length

Post by RGV250 »

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

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: Circular buffer max length

Post by BenR »

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.

mnfisher
Valued Contributor
Posts: 953
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 507 times

Re: Circular buffer max length

Post by mnfisher »

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

RGV250
Posts: 264
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 23 times
Been thanked: 30 times

Re: Circular buffer max length

Post by RGV250 »

Hi,
Thanks for confirming the length is OK.
Thank Martin, I had missed that value.
Still having issues but at least I know it is deeper that that.

Bob

Post Reply