The read function returns an incorrect temperature. Fixed #149.

This commit is contained in:
HuangRui 2015-01-31 10:46:43 +08:00
parent f45e6fece3
commit 8cc661923b
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ function read(addr, unit)
if((t1 == nil ) or (t2 ==nil)) then
return nil
else
return t1.."."..t2
return t1.."."..string.format("%04u", t2)
end
end