kopia lustrzana https://github.com/micropython/micropython-lib
dht: Fix regression importing dht_readinto from pyb.
sys.platform of Pyboard is "pyboard", not "pyb".pull/573/head
rodzic
038b4ac657
commit
2b07820df3
|
@ -8,6 +8,8 @@ if hasattr(machine, "dht_readinto"):
|
|||
from machine import dht_readinto
|
||||
elif sys.platform.startswith("esp"):
|
||||
from esp import dht_readinto
|
||||
elif sys.platform == "pyboard":
|
||||
from pyb import dht_readinto
|
||||
else:
|
||||
dht_readinto = __import__(sys.platform).dht_readinto
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue