From 70369129d6ad1cd39d298686c2facf6da507a72a Mon Sep 17 00:00:00 2001 From: Vitor de Miranda Henrique Date: Sat, 15 Apr 2017 15:24:54 -0500 Subject: [PATCH] Update getDHTTemp.py --- octoprint_enclosure/getDHTTemp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_enclosure/getDHTTemp.py b/octoprint_enclosure/getDHTTemp.py index c631909..cd6c18f 100644 --- a/octoprint_enclosure/getDHTTemp.py +++ b/octoprint_enclosure/getDHTTemp.py @@ -16,7 +16,7 @@ else: humidity, temperature = Adafruit_DHT.read_retry(sensor, pin,2,0.5) if humidity is not None and temperature is not None: - print('{0:0.1f} | {0:0.1f}'.format(temperature, humidity)) + print('{0:0.1f} | {1:0.1f}'.format(temperature, humidity)) else: print('-1 | -1')