Skip to content

Commit

Permalink
fix bug with output
Browse files Browse the repository at this point in the history
  • Loading branch information
flxdot committed Apr 18, 2024
1 parent f358a38 commit 44f52a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/py_edge_device/carlos/edge/device/io/_dhtxx.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def read(self) -> tuple[float, float]:
humidity = float(int(data[0:16], 2) * 0.1)
temperature = float(int(data[17:32], 2) * 0.2 * (0.5 - int(data[16], 2)))

return humidity, temperature
return temperature, humidity


class DHTXX(AnalogInput, ABC):
Expand Down

0 comments on commit 44f52a4

Please sign in to comment.