From af53d454f5ea5b0767c27ad22d39f5ace9941342 Mon Sep 17 00:00:00 2001
From: Eric Brombaugh <ebrombaugh1@cox.net>
Date: Wed, 26 Jul 2023 12:14:47 -0700
Subject: [PATCH] Fix CI failure in UART demo

---
 ch32v003fun/ch32v003fun.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ch32v003fun/ch32v003fun.c b/ch32v003fun/ch32v003fun.c
index 9a718df..02d020f 100644
--- a/ch32v003fun/ch32v003fun.c
+++ b/ch32v003fun/ch32v003fun.c
@@ -1003,7 +1003,8 @@ void WaitForDebuggerToAttach()
 
 #endif
 
-#if defined( FUNCONF_USE_DEBUGPRINTF ) && !FUNCONF_USE_DEBUGPRINTF
+#if (defined( FUNCONF_USE_DEBUGPRINTF ) && !FUNCONF_USE_DEBUGPRINTF) && \
+(defined( FUNCONF_USE_UARTPRINTF ) && !FUNCONF_USE_UARTPRINTF)
 int _write(int fd, const char *buf, int size)
 {
 	return size;
-- 
GitLab