Skip to content
Snippets Groups Projects
Commit 397336eb authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

rhtp.py: use await

parent d9c9c0e0
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,8 @@ async def main():
p_sensor = LPS28DFW(i2c)
while True:
t, rh = await sht45.measure()
p = p_sensor.pressure()
p_t = p_sensor.temperature()
p = await p_sensor.pressure()
p_t = await p_sensor.temperature()
print(f"temperature: {t}")
print(f"rH: {rh}")
print(f"pressure: {p}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment