Fix self.pin when specifying lpin for readTemp() (#1865)
This commit is contained in:
parent
25f433a6c6
commit
46f651cccb
|
@ -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={}
|
||||||
|
|
Loading…
Reference in New Issue