From 4c537dce540707808a269dbe66a8d9a7de30f176 Mon Sep 17 00:00:00 2001
From: Eric Brombaugh <ebrombaugh1@cox.net>
Date: Wed, 26 Jul 2023 12:38:32 -0700
Subject: [PATCH] more logic for disabling

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

diff --git a/ch32v003fun/ch32v003fun.c b/ch32v003fun/ch32v003fun.c
index 02d020f..235f20f 100644
--- a/ch32v003fun/ch32v003fun.c
+++ b/ch32v003fun/ch32v003fun.c
@@ -1004,7 +1004,9 @@ void WaitForDebuggerToAttach()
 #endif
 
 #if (defined( FUNCONF_USE_DEBUGPRINTF ) && !FUNCONF_USE_DEBUGPRINTF) && \
-(defined( FUNCONF_USE_UARTPRINTF ) && !FUNCONF_USE_UARTPRINTF)
+((defined( FUNCONF_USE_UARTPRINTF ) && !FUNCONF_USE_UARTPRINTF) || \
+!defined( FUNCONF_USE_UARTPRINTF ))
+#warning( DEBUG Print Disabled)
 int _write(int fd, const char *buf, int size)
 {
 	return size;
-- 
GitLab