Fix sample code bug (inconsistent variable names) in DHT example

This commit is contained in:
Keith Fieldhouse 2016-01-17 15:31:37 -05:00
parent 5645827592
commit 339f71ad75
1 changed files with 2 additions and 2 deletions

View File

@ -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