Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
46f651cc
Commit
46f651cc
authored
Mar 16, 2017
by
Arnim Läuger
Committed by
Marcel Stör
Mar 16, 2017
Browse files
Fix self.pin when specifying lpin for readTemp() (#1865)
parent
25f433a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
lua_modules/ds18b20/ds18b20.lua
View file @
46f651cc
...
...
@@ -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
=
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment