diff --git a/ports/esp32/modesp32.c b/ports/esp32/modesp32.c index 7a436bf77c..a18ca4c137 100644 --- a/ports/esp32/modesp32.c +++ b/ports/esp32/modesp32.c @@ -170,12 +170,6 @@ STATIC mp_obj_t esp32_raw_temperature(void) { } STATIC MP_DEFINE_CONST_FUN_OBJ_0(esp32_raw_temperature_obj, esp32_raw_temperature); -STATIC mp_obj_t esp32_hall_sensor(void) { - adc1_config_width(ADC_WIDTH_12Bit); - return MP_OBJ_NEW_SMALL_INT(hall_sensor_read()); -} -STATIC MP_DEFINE_CONST_FUN_OBJ_0(esp32_hall_sensor_obj, esp32_hall_sensor); - #endif STATIC mp_obj_t esp32_idf_heap_info(const mp_obj_t cap_in) { @@ -210,7 +204,6 @@ STATIC const mp_rom_map_elem_t esp32_module_globals_table[] = { { MP_ROM_QSTR(MP_QSTR_gpio_deep_sleep_hold), MP_ROM_PTR(&esp32_gpio_deep_sleep_hold_obj) }, #if CONFIG_IDF_TARGET_ESP32 { MP_ROM_QSTR(MP_QSTR_raw_temperature), MP_ROM_PTR(&esp32_raw_temperature_obj) }, - { MP_ROM_QSTR(MP_QSTR_hall_sensor), MP_ROM_PTR(&esp32_hall_sensor_obj) }, #endif { MP_ROM_QSTR(MP_QSTR_idf_heap_info), MP_ROM_PTR(&esp32_idf_heap_info_obj) },