fix when open samrt but using msh after run elf file the msh will down

This commit is contained in:
zhujiale 2025-01-15 14:07:21 +08:00 committed by Rbb666
parent 680333fc18
commit 9c164882e8

View File

@ -232,7 +232,7 @@ static void serial_tty_close(struct lwp_tty *tp)
LOG_D("%s", __func__);
_restore_serial(serial, tp, softc);
rt_bypass_lower_unregister(serial, RT_BYPASS_PROTECT_LEVEL_1);
rt_device_close(&serial->parent);
}