Commit 214be162 authored by Arnim Läuger's avatar Arnim Läuger Committed by devsaurus
Browse files

Fix self.pin when specifying lpin for readTemp() (#1865)

parent 784fefeb
...@@ -29,10 +29,10 @@ return({ ...@@ -29,10 +29,10 @@ return({
end, end,
readTemp = function(self, cb, lpin) readTemp = function(self, cb, lpin)
if lpin then self.pin = lpin end
local pin = self.pin local pin = self.pin
self.cb = cb self.cb = cb
self.temp={} self.temp={}
if lpin then pin = lpin end
ow.setup(pin) ow.setup(pin)
self.sens={} self.sens={}
......
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