Commit 8cc66192 authored by HuangRui's avatar HuangRui
Browse files

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

parent f45e6fec
...@@ -126,7 +126,7 @@ function read(addr, unit) ...@@ -126,7 +126,7 @@ function read(addr, unit)
if((t1 == nil ) or (t2 ==nil)) then if((t1 == nil ) or (t2 ==nil)) then
return nil return nil
else else
return t1.."."..t2 return t1.."."..string.format("%04u", t2)
end end
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment