From 339f71ad7578a1e29bfdac0d4ba590c8a3500e54 Mon Sep 17 00:00:00 2001 From: Keith Fieldhouse Date: Sun, 17 Jan 2016 15:31:37 -0500 Subject: [PATCH] Fix sample code bug (inconsistent variable names) in DHT example --- docs/en/modules/dht.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/modules/dht.md b/docs/en/modules/dht.md index 592f64cf..aba72d4d 100644 --- a/docs/en/modules/dht.md +++ b/docs/en/modules/dht.md @@ -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_deci, + temp_dec, math.floor(humi), - humi_deci + humi_dec )) -- Float firmware using this example