Commit fd234d1d authored by Marcel Stör's avatar Marcel Stör
Browse files

Merge pull request #950 from kfieldho/kfieldho/dht-doc-bugfix

Fix sample code bug (inconsistent variable names) in DHT example
parents 4f330e45 339f71ad
...@@ -31,9 +31,9 @@ if status == dht.OK then ...@@ -31,9 +31,9 @@ if status == dht.OK then
-- Integer firmware using this example -- Integer firmware using this example
print(string.format("DHT Temperature:%d.%03d;Humidity:%d.%03d\r\n", print(string.format("DHT Temperature:%d.%03d;Humidity:%d.%03d\r\n",
math.floor(temp), math.floor(temp),
temp_deci, temp_dec,
math.floor(humi), math.floor(humi),
humi_deci humi_dec
)) ))
-- Float firmware using this example -- Float firmware using this example
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment