Open GoogleCodeExporter opened 8 years ago
After further examination of the code (WorkImage.java, r17 on line 130) I found
another bug that makes conversion to fahrenheit incorrect. The value of
“temp” is a 3 digit whole number that needs to be changed to 2 digit float
BEFORE doing the conversion. Below is my proposed solution for this bug on line
130.
Change this:
float fahrenheit = (float)(temp - 32) * (5f / 9.0f) / 10.0f;
To this:
float fahrenheit = (float) 32.0f + 1.8f * (temp / 10.0f);
This fix does work because I’ve tested it on two phones… LG Motion MS770
and Samsung Conquer SPH-D600.
Original comment by gcand...@gmail.com
on 20 Jan 2015 at 7:58
Original issue reported on code.google.com by
gcand...@gmail.com
on 30 Dec 2014 at 8:10