Преглед изворни кода

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

Fix sample code bug (inconsistent variable names) in DHT example
Marcel Stör пре 8 година
родитељ
комит
fd234d1d2c
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      docs/en/modules/dht.md

+ 2 - 2
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