Skip to content

Commit b5d59b3

Browse files
committed
updated examples; requested change in PR #4
1 parent 49db26f commit b5d59b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/dht_simpletest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
while True:
99
try:
1010
# show the values to the serial port
11-
temperature = dhtDevice.temperature*9/5+32
11+
temperature = dhtDevice.temperature * (9 / 5) + 32
1212
humidity = dhtDevice.humidity
1313
print("Temp: {:.1f} F Humidity: {}% ".format(temperature, humidity))
1414

examples/dht_to_led_display.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
while True:
2626
try:
2727
# show the values to the serial port
28-
temperature = dhtDevice.temperature*9/5+32
28+
temperature = dhtDevice.temperature * (9 / 5) + 32
2929
humidity = dhtDevice.humidity
3030
#print("Temp: {:.1f} F Humidity: {}% ".format(temperature, humidity))
3131

0 commit comments

Comments
 (0)