diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-11-12 21:06:10 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-11-12 21:06:10 +0000 |
commit | 8e3abc0cce6d52ebf9195ea277a6dbd92ba497a1 (patch) | |
tree | d842796db2aa8703be7e1600acdfaa0b805332e1 | |
parent | 5cecf46e8716d5f2424f162a8caca52677c17ee1 (diff) |
devuart: make sure consuart was enabled before setting serialoq
-rw-r--r-- | sys/src/9/port/devuart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/devuart.c b/sys/src/9/port/devuart.c index 4ee0e3aa5..202151947 100644 --- a/sys/src/9/port/devuart.c +++ b/sys/src/9/port/devuart.c @@ -285,7 +285,7 @@ static void uartinit(void) { /* now that the timers are ticking, enable buffered uart */ - if(serialoq == nil && consuart != nil) + if(serialoq == nil && consuart != nil && consuart->enabled) serialoq = consuart->oq; } |