The "temp" variable shouldn't be used as both raw value and compensated. Signed-off-by: Takumi Ando <t-ando@advaly.co.jp>