From fca2730ea01bc8457804884f4a0472ae0d938a19 Mon Sep 17 00:00:00 2001 From: stijn Date: Sat, 16 Jan 2021 09:24:22 +0100 Subject: [PATCH] lib/utils/pyexec: Remove obsolete LCD initialization. This was added a long time ago in 75abee206d1a575aa98a486d043c94d64df432c1 when USB host support was added to the stm (now stm32) port, and when this pyexec code was actually part of the stm port. It's unlikely to work as intended anymore. If it is needed in the future then generic hook macros can be added in pyexec. --- lib/utils/pyexec.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/utils/pyexec.c b/lib/utils/pyexec.c index 86321ac12..d1e955d65 100644 --- a/lib/utils/pyexec.c +++ b/lib/utils/pyexec.c @@ -546,12 +546,6 @@ int pyexec_friendly_repl(void) { vstr_t line; vstr_init(&line, 32); - #if defined(USE_HOST_MODE) && MICROPY_HW_HAS_LCD - // in host mode, we enable the LCD for the repl - mp_obj_t lcd_o = mp_call_function_0(mp_load_name(qstr_from_str("LCD"))); - mp_call_function_1(mp_load_attr(lcd_o, qstr_from_str("light")), mp_const_true); - #endif - friendly_repl_reset: mp_hal_stdout_tx_str("MicroPython " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE "; " MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME "\r\n"); #if MICROPY_PY_BUILTINS_HELP