Copied i2c handling functions from microp_ng.c. The i2c_read function was really bad, with splitting of read and write. New one has retries and uses i2c_transfer instead.
reduced debug output
more reduced debug
Added temp saturation at 60 degrees.

When reading temp just after turning off battery charging the value read is wrong, and the calculated temp is 70 degrees. This sets of an alarm that reboots the phone. Saturating at 60 degrees solves this.