Skip to content

Commit d0a3dcc

Browse files
committed
fix when open samrt but using msh after run elf file the msh will down
1 parent 4e37047 commit d0a3dcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/drivers/serial/serial_tty.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ static void serial_tty_close(struct lwp_tty *tp)
232232

233233
LOG_D("%s", __func__);
234234

235-
_restore_serial(serial, tp, softc);
235+
rt_bypass_lower_unregister(serial,RT_BYPASS_PROTECT_LEVEL_1);
236236
rt_device_close(&serial->parent);
237237
}
238238

0 commit comments

Comments
 (0)