From e5cda2a34f4acd9bfe2c4b6adc6c5550f40b8892 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 25 Feb 2026 13:25:47 +0100 Subject: [PATCH] another drain check --- vorago-shared-hal/src/uart/tx_async.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vorago-shared-hal/src/uart/tx_async.rs b/vorago-shared-hal/src/uart/tx_async.rs index 22efc2f..fb53b57 100644 --- a/vorago-shared-hal/src/uart/tx_async.rs +++ b/vorago-shared-hal/src/uart/tx_async.rs @@ -262,6 +262,9 @@ impl TxAsync { } pub async fn flush(&mut self) -> Result<(), TxOverrunError> { + if tx_is_drained(&self.0) { + return Ok(()); + } let fut = TxFlushFuture::new(&mut self.0); fut.await }