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

This commit is contained in:
Arnim Läuger 2017-03-16 12:36:09 +01:00 committed by Marcel Stör
parent 25f433a6c6
commit 46f651cccb
1 changed files with 1 additions and 1 deletions

View File

@ -29,10 +29,10 @@ return({
end,
readTemp = function(self, cb, lpin)
if lpin then self.pin = lpin end
local pin = self.pin
self.cb = cb
self.temp={}
if lpin then pin = lpin end
ow.setup(pin)
self.sens={}