kopia lustrzana https://github.com/micropython/micropython
drivers/dht: Only build DHT driver if MICROPY_PY_MACHINE_PULSE enabled.
Because this driver calls `machine_time_pulse_us()`. Signed-off-by: Damien George <damien@micropython.org>pull/13524/head
rodzic
4c56b39051
commit
1c7afa923b
|
@ -29,6 +29,9 @@
|
|||
#include "py/runtime.h"
|
||||
#include "py/mperrno.h"
|
||||
#include "py/mphal.h"
|
||||
|
||||
#if MICROPY_PY_MACHINE_PULSE
|
||||
|
||||
#include "extmod/modmachine.h"
|
||||
#include "drivers/dht/dht.h"
|
||||
|
||||
|
@ -92,3 +95,5 @@ timeout:
|
|||
mp_raise_OSError(MP_ETIMEDOUT);
|
||||
}
|
||||
MP_DEFINE_CONST_FUN_OBJ_2(dht_readinto_obj, dht_readinto);
|
||||
|
||||
#endif // MICROPY_PY_MACHINE_PULSE
|
||||
|
|
Ładowanie…
Reference in New Issue