String initialization in simulation

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
mnfisher
Valued Contributor
Posts: 1628
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

String initialization in simulation

Post by mnfisher »

Just noticed that string initialisation doesn't seem to work correctly in simulation...

So if I declare a variable test as a string with initial value "ABCD" it is empty.
The code generated looks good however - so should work on the MCU...
init.fcfx
(8.81 KiB) Downloaded 245 times
Just sends "\r\n" to UART in simulation.....

Martin

Steve-Matrix
Matrix Staff
Posts: 1548
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 214 times
Been thanked: 362 times

Re: String initialization in simulation

Post by Steve-Matrix »

Thanks for letting us know about this. I actually fixed this issue in the v10 codebase about 4 months ago as part of a large change to better support strings.

I've just rolled out a simple fix for the v9 codebase, so this should work when a future version of the exe is released.

Post Reply