I just updated to 1.6.5 and am getting a Microsoft System Error (send message to MS error) with ld.exe on the following function...
void get_volts() {
fvolts = min((analogRead(A0) * .0049 * 3.0), 15.0);
volts = int(fvolts * 10.0); //make a 3 digit int
return;
}
fvolts is declared a global float, and volts is a global int. The compiler fails with...
collect2.exe: error: ld returned 5 exit status
Error compiling.
Any ideas?
ps. I just tried the function in a separate sketch and it works fine. Also, I'm using XP.
pps. Reverted back to rev 1.6.0 and the entire sketch compiles error free.