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
339f71ad
Commit
339f71ad
authored
Jan 17, 2016
by
Keith Fieldhouse
Browse files
Fix sample code bug (inconsistent variable names) in DHT example
parent
56458275
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/en/modules/dht.md
View file @
339f71ad
...
...
@@ -31,9 +31,9 @@ if status == dht.OK then
-- Integer firmware using this example
print
(
string.format
(
"DHT Temperature:%d.%03d;Humidity:%d.%03d\r\n"
,
math.floor
(
temp
),
temp_dec
i
,
temp_dec
,
math.floor
(
humi
),
humi_dec
i
humi_dec
))
-- Float firmware using this example
...
...
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