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
f5672207
Commit
f5672207
authored
Dec 13, 2019
by
Andreas
Committed by
Marcel Stör
Jun 09, 2020
Browse files
fixed missing forward declaration (#2975)
parent
948325a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
lua_modules/ds18b20/ds18b20.lua
View file @
f5672207
...
@@ -50,6 +50,8 @@ local function to_string(addr, esc)
...
@@ -50,6 +50,8 @@ local function to_string(addr, esc)
end
end
end
end
local
conversion
local
function
readout
(
self
)
local
function
readout
(
self
)
local
next
=
false
local
next
=
false
local
sens
=
self
.
sens
local
sens
=
self
.
sens
...
@@ -114,7 +116,7 @@ local function readout(self)
...
@@ -114,7 +116,7 @@ local function readout(self)
end
end
end
end
local
function
conversion
(
self
)
conversion
=
function
(
self
)
local
sens
=
self
.
sens
local
sens
=
self
.
sens
local
powered_only
=
true
local
powered_only
=
true
for
_
,
s
in
ipairs
(
sens
)
do
powered_only
=
powered_only
and
s
:
byte
(
9
)
~=
1
end
for
_
,
s
in
ipairs
(
sens
)
do
powered_only
=
powered_only
and
s
:
byte
(
9
)
~=
1
end
...
...
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