Page 1 of 1

Big bug with ADC

Posted: Sun Jul 10, 2011 7:19 pm
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 283 times

Re: Big bug with ADC

Posted: Mon Jul 11, 2011 8:50 am
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.