summaryrefslogtreecommitdiff
path: root/ports/esp8266/main.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-07-23 21:34:25 -0400
committerDan Halbert <halbert@halwitz.org>2018-07-23 21:34:25 -0400
commitbc760dd34100099c352a0f185ec54ceae23d036d (patch)
treecdbf3137eab7adec885ddb812daeda9b7069d679 /ports/esp8266/main.c
parent2809b4f9dd08dd1e83e87f1f4088ba22f3f66cd2 (diff)
WIP: complete manual inspection of all significant changes
Diffstat (limited to 'ports/esp8266/main.c')
-rw-r--r--ports/esp8266/main.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/ports/esp8266/main.c b/ports/esp8266/main.c
index da41b00c9..4882bf599 100644
--- a/ports/esp8266/main.c
+++ b/ports/esp8266/main.c
@@ -111,25 +111,6 @@ STATIC void mp_reset(void) {
readline_init0();
dupterm_task_init();
pwmout_reset();
-
- // Check if there are any dupterm objects registered and if not then
- // activate UART(0), or else there will never be any chance to get a REPL
- size_t idx;
- for (idx = 0; idx < MICROPY_PY_OS_DUPTERM; ++idx) {
- if (MP_STATE_VM(dupterm_objs[idx]) != MP_OBJ_NULL) {
- break;
- }
- }
- if (idx == MICROPY_PY_OS_DUPTERM) {
- mp_obj_t args[2];
- args[0] = MP_OBJ_NEW_SMALL_INT(0);
- args[1] = MP_OBJ_NEW_SMALL_INT(115200);
- args[0] = pyb_uart_type.make_new(&pyb_uart_type, 2, 0, args);
- args[1] = MP_OBJ_NEW_SMALL_INT(1);
- extern mp_obj_t os_dupterm(size_t n_args, const mp_obj_t *args);
- os_dupterm(2, args);
- mp_hal_stdout_tx_str("Activated UART(0) for REPL\r\n");
- }
}
bool soft_reset(void) {