aakkkkii / aeroquad

Automatically exported from code.google.com/p/aeroquad
0 stars 0 forks source link

SerialCom.cpp validateCalibrateCommand must use float constant #141

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Change 123.45 to 123.45F so the code gets
if (checkValue == 123.45F) {// use a specific float value to validate full 
throttle call is being sent
Without the F at the end the constant can be double depending on the used 
compiler, so the conpare will fail in this case.

Original issue reported on code.google.com by al...@arcor.de on 3 Nov 2011 at 5:05