Skip to content

Commit

Permalink
drivers/dht/dht.py: Change default import module as machine.
Browse files Browse the repository at this point in the history
Signed-off-by: Takeo Takahashi <takeo.takahashi.xv@renesas.com>
  • Loading branch information
TakeoTakahashi2020 committed Apr 29, 2022
1 parent 0f57ccf commit 86e3517
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/dht/dht.py
Expand Up @@ -9,8 +9,10 @@
from mimxrt import dht_readinto
elif sys.platform == "rp2":
from rp2 import dht_readinto
else:
elif sys.platform == "pyboard":
from pyb import dht_readinto
else:
from machine import dht_readinto


class DHTBase:
Expand Down

0 comments on commit 86e3517

Please sign in to comment.