Skip to content

Commit 2b07820

Browse files
robert-hhdpgeorge
authored andcommitted
dht: Fix regression importing dht_readinto from pyb.
sys.platform of Pyboard is "pyboard", not "pyb".
1 parent 038b4ac commit 2b07820

File tree

1 file changed

+2
-0
lines changed
  • micropython/drivers/sensor/dht

1 file changed

+2
-0
lines changed

micropython/drivers/sensor/dht/dht.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
from machine import dht_readinto
99
elif sys.platform.startswith("esp"):
1010
from esp import dht_readinto
11+
elif sys.platform == "pyboard":
12+
from pyb import dht_readinto
1113
else:
1214
dht_readinto = __import__(sys.platform).dht_readinto
1315

0 commit comments

Comments
 (0)