The read function returns an incorrect temperature. Fixed #149.
This commit is contained in:
parent
f45e6fece3
commit
8cc661923b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue