From 2af229c3cc55ceefc4cfba0f50092af725c3bfa9 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 21 Jun 2023 17:04:56 +1000 Subject: [PATCH] esp32/modesp32: Remove esp32.hall_sensor function. The hall sensor is no longer supported by IDF v5. Signed-off-by: Damien George --- ports/esp32/modesp32.c | 7 ------- 1 file changed, 7 deletions(-) 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) },