ref: 8e3abc0cce6d52ebf9195ea277a6dbd92ba497a1
parent: 5cecf46e8716d5f2424f162a8caca52677c17ee1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Nov 12 16:06:10 EST 2023
devuart: make sure consuart was enabled before setting serialoq
--- a/sys/src/9/port/devuart.c
+++ b/sys/src/9/port/devuart.c
@@ -285,7 +285,7 @@
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;
}