File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 35
35
#include "py/runtime.h"
36
36
#include "py/mperrno.h"
37
37
#include "py/mphal.h"
38
- #include "drivers/dht/dht.h"
39
38
40
39
STATIC mp_obj_t esp_osdebug (size_t n_args , const mp_obj_t * args ) {
41
40
esp_log_level_t level = LOG_LOCAL_LEVEL ;
@@ -125,8 +124,6 @@ STATIC const mp_rom_map_elem_t esp_module_globals_table[] = {
125
124
{ MP_ROM_QSTR (MP_QSTR_gpio_matrix_in ), MP_ROM_PTR (& esp_gpio_matrix_in_obj ) },
126
125
{ MP_ROM_QSTR (MP_QSTR_gpio_matrix_out ), MP_ROM_PTR (& esp_gpio_matrix_out_obj ) },
127
126
128
- { MP_ROM_QSTR (MP_QSTR_dht_readinto ), MP_ROM_PTR (& dht_readinto_obj ) },
129
-
130
127
// Constants for second arg of osdebug()
131
128
{ MP_ROM_QSTR (MP_QSTR_LOG_NONE ), MP_ROM_INT ((mp_uint_t )ESP_LOG_NONE )},
132
129
{ MP_ROM_QSTR (MP_QSTR_LOG_ERROR ), MP_ROM_INT ((mp_uint_t )ESP_LOG_ERROR )},
Original file line number Diff line number Diff line change 49
49
#include "py/obj.h"
50
50
#include "py/runtime.h"
51
51
#include "shared/runtime/pyexec.h"
52
+ #include "drivers/dht/dht.h"
52
53
#include "extmod/machine_bitstream.h"
53
54
#include "extmod/machine_mem.h"
54
55
#include "extmod/machine_signal.h"
@@ -295,6 +296,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
295
296
#if MICROPY_PY_MACHINE_PULSE
296
297
{ MP_ROM_QSTR (MP_QSTR_time_pulse_us ), MP_ROM_PTR (& machine_time_pulse_us_obj ) },
297
298
#endif
299
+ { MP_ROM_QSTR (MP_QSTR_dht_readinto ), MP_ROM_PTR (& dht_readinto_obj ) },
298
300
299
301
{ MP_ROM_QSTR (MP_QSTR_Timer ), MP_ROM_PTR (& machine_timer_type ) },
300
302
{ MP_ROM_QSTR (MP_QSTR_WDT ), MP_ROM_PTR (& machine_wdt_type ) },
You can’t perform that action at this time.
0 commit comments