Big bug with ADC

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
HjH
Posts: 108
Joined: Sat Jul 03, 2010 4:38 pm
Been thanked: 2 times

Big bug with ADC

Post by HjH »

Hi

I have write a smal sample, that can explain the bug.

The bug is in the call "ReadAsVoltage"
If you replace the 0.01 in the call "fVoltage = float32_mul(fVoltage, 0.01);" with integer number and the 0.000976 in the call "fVperDiv = float32_mul(fVoltage, 0.000976);" with integer number the complier ends successful.

You can see this in the attachment
Flowcode1.zip
(87.65 KiB) Downloaded 281 times

User avatar
Steve
Matrix Staff
Posts: 3434
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: Big bug with ADC

Post by Steve »

This is a problem with the BETA installation of Flowcode v4.5 that you have. The error is in the BoostC compiler and has been fixed. You will need to wait for the actual release of V4.5 for this update.

Post Reply